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
20#ifndef CRYPTO_HELPER_H
21#define CRYPTO_HELPER_H
22
23#include <stddef.h>
24#include <stdint.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
38void crypto_block_inc_ctr(uint8_t block[16], int L);
39
49int crypto_equals(const uint8_t *a, const uint8_t *b, size_t len);
50
64void crypto_secure_wipe(void *buf, size_t len);
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif /* CRYPTO_HELPER_H */
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.