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
27 extern "C" {
28 #endif
29 
38 void crypto_block_inc_ctr(uint8_t block[16], int L);
39 
40 
50 int crypto_equals(const uint8_t *a, const uint8_t *b, size_t len);
51 
65 void crypto_secure_wipe(void *buf, size_t len);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* CRYPTO_HELPER_H */
crypto_secure_wipe
void crypto_secure_wipe(void *buf, size_t len)
Secure wipe function.
crypto_block_inc_ctr
void crypto_block_inc_ctr(uint8_t block[16], int L)
Increment a counter encoded in an 16 octet block.
crypto_equals
int crypto_equals(const uint8_t *a, const uint8_t *b, size_t len)
Compares two blocks of same size in deterministic time.