Home
last modified time | relevance | path

Searched refs:NOISE_HASH_LEN (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/net/wireguard/
H A Dnoise.c40 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 Dnoise.h80 u8 hash[NOISE_HASH_LEN];
81 u8 chaining_key[NOISE_HASH_LEN];
H A Dcookie.c24 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 Dcookie.h15 u8 secret[NOISE_HASH_LEN];
H A Dmessages.h22 NOISE_HASH_LEN = BLAKE2S_HASH_SIZE enumerator