Searched refs:BLAKE2S_HASH_SIZE (Results 1 – 3 of 3) sorted by relevance
/freebsd/sys/dev/wg/ |
H A D | wg_noise.c | 1200 uint8_t i_hash[BLAKE2S_HASH_SIZE] __aligned(sizeof(uint32_t)); in hmac() 1204 blake2s_init(&state, BLAKE2S_HASH_SIZE); in hmac() 1213 blake2s_init(&state, BLAKE2S_HASH_SIZE); in hmac() 1221 blake2s_init(&state, BLAKE2S_HASH_SIZE); in hmac() 1223 blake2s_update(&state, i_hash, BLAKE2S_HASH_SIZE); in hmac() 1228 explicit_bzero(i_hash, BLAKE2S_HASH_SIZE); in hmac() 1237 uint8_t out[BLAKE2S_HASH_SIZE + 1]; in noise_kdf() 1238 uint8_t sec[BLAKE2S_HASH_SIZE]; in noise_kdf() 1241 hmac(sec, x, ck, BLAKE2S_HASH_SIZE, x_len, NOISE_HASH_LEN); in noise_kdf() 1248 hmac(out, out, sec, BLAKE2S_HASH_SIZE, 1, BLAKE2S_HASH_SIZE); in noise_kdf() [all …]
|
H A D | wg_noise.h | 16 #define NOISE_HASH_LEN BLAKE2S_HASH_SIZE
|
H A D | crypto.h | 83 BLAKE2S_HASH_SIZE = 32, enumerator
|