|
OpenVPN
|
#include <stdint.h>#include <stdio.h>#include <stdbool.h>

Go to the source code of this file.
Functions | |
| void * | siphash_openssl_init (size_t hash_size) |
| int | siphash_openssl (void *sip_context, const void *in, size_t inlen, const void *k, uint8_t *out, size_t outlen) |
| Calculates SIPHASH using the crypto library function. | |
| void | siphash_openssl_uninit (void *sip_context) |
| Free the siphash context used for the crypto library. | |
| bool | siphash_openssl_available (void *sip_context) |
| Returns if the crypto library is available (and should be used) | |
| int siphash_openssl | ( | void * | sip_context, |
| const void * | in, | ||
| size_t | inlen, | ||
| const void * | k, | ||
| uint8_t * | out, | ||
| size_t | outlen | ||
| ) |
Calculates SIPHASH using the crypto library function.
Definition at line 120 of file siphash_openssl.c.
Referenced by test_siphash_openssl().
| bool siphash_openssl_available | ( | void * | sip_context | ) |
Returns if the crypto library is available (and should be used)
This returns if there is a crypto library version of Siphash24 is available and should be used (OpenSSL 3/4 version is quite slow, so we prefer the reference implementation)
Definition at line 127 of file siphash_openssl.c.
Referenced by test_siphash_openssl().
| void * siphash_openssl_init | ( | size_t | hash_size | ) |
| hash_size | the size of the output hash size |
Definition at line 133 of file siphash_openssl.c.
Referenced by test_siphash_openssl().
| void siphash_openssl_uninit | ( | void * | sip_context | ) |
Free the siphash context used for the crypto library.
| sip_context |
Definition at line 139 of file siphash_openssl.c.
Referenced by test_siphash_openssl().