Loading...
Searching...
No Matches
helper.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
21
22#include <stddef.h>
23#include <stdint.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
37void crypto_block_inc_ctr(uint8_t block[16], int L);
38
48int crypto_equals(const uint8_t *a, const uint8_t *b, size_t len);
49
63void crypto_secure_wipe(void *buf, size_t len);
64
65#ifdef __cplusplus
66}
67#endif
68
void crypto_block_inc_ctr(uint8_t block[16], int L)
Increment a counter encoded in an 16 octet block.
void crypto_secure_wipe(void *buf, size_t len)
Secure wipe function.
int crypto_equals(const uint8_t *a, const uint8_t *b, size_t len)
Compares two blocks of same size in deterministic time.