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(uint8_t *a, uint8_t *b, size_t len);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 #endif /* CRYPTO_HELPER_H */
int crypto_equals(uint8_t *a, uint8_t *b, size_t len)
Compares two blocks of same size in deterministic time.
void crypto_block_inc_ctr(uint8_t block[16], int L)
Increment a counter encoded in an 16 octet block.