Searched refs:NOISE_HASH_LEN (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/net/wireguard/ |
H A D | noise.c | 40 blake2s_init(&blake, NOISE_HASH_LEN); in wg_noise_init() 442 static void mix_psk(u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN], in mix_psk() argument 446 u8 temp_hash[NOISE_HASH_LEN]; in mix_psk() 448 kdf(chaining_key, temp_hash, key, psk, NOISE_HASH_LEN, NOISE_HASH_LEN, in mix_psk() 455 u8 hash[NOISE_HASH_LEN], in handshake_init() argument 465 u8 hash[NOISE_HASH_LEN]) in message_encrypt() argument 468 NOISE_HASH_LEN, in message_encrypt() 475 u8 hash[NOISE_HASH_LEN]) in message_decrypt() argument 478 hash, NOISE_HASH_LEN, in message_decrypt() 592 u8 hash[NOISE_HASH_LEN]; in wg_noise_handshake_consume_initiation() [all …]
|
H A D | noise.h | 80 u8 hash[NOISE_HASH_LEN]; 81 u8 chaining_key[NOISE_HASH_LEN];
|
H A D | cookie.c | 24 get_random_bytes(checker->secret, NOISE_HASH_LEN); in wg_cookie_checker_init() 100 get_random_bytes(checker->secret, NOISE_HASH_LEN); in make_cookie() 106 blake2s_init_key(&state, COOKIE_LEN, checker->secret, NOISE_HASH_LEN); in make_cookie()
|
H A D | cookie.h | 15 u8 secret[NOISE_HASH_LEN];
|
H A D | messages.h | 22 NOISE_HASH_LEN = BLAKE2S_HASH_SIZE enumerator
|