Searched refs:NOISE_HASH_LEN (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/net/wireguard/ |
D | noise.c | 30 static u8 handshake_init_hash[NOISE_HASH_LEN] __ro_after_init; 31 static u8 handshake_init_chaining_key[NOISE_HASH_LEN] __ro_after_init; 39 NOISE_HASH_LEN, sizeof(handshake_name), 0); in wg_noise_init() 40 blake2s_init(&blake, NOISE_HASH_LEN); in wg_noise_init() 41 blake2s_update(&blake, handshake_init_chaining_key, NOISE_HASH_LEN); in wg_noise_init() 82 memset(&handshake->hash, 0, NOISE_HASH_LEN); in handshake_zero() 83 memset(&handshake->chaining_key, 0, NOISE_HASH_LEN); in handshake_zero() 346 size_t data_len, const u8 chaining_key[NOISE_HASH_LEN]) in kdf() argument 360 hmac(secret, data, chaining_key, data_len, NOISE_HASH_LEN); in kdf() 394 const u8 chaining_key[NOISE_HASH_LEN]) in derive_keys() argument [all …]
|
D | noise.h | 80 u8 hash[NOISE_HASH_LEN]; 81 u8 chaining_key[NOISE_HASH_LEN];
|
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()
|
D | cookie.h | 15 u8 secret[NOISE_HASH_LEN];
|
D | messages.h | 22 NOISE_HASH_LEN = BLAKE2S_HASH_SIZE enumerator
|