Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/wireguard/
Dnoise.c30 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 …]
Dnoise.h80 u8 hash[NOISE_HASH_LEN];
81 u8 chaining_key[NOISE_HASH_LEN];
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()
Dcookie.h15 u8 secret[NOISE_HASH_LEN];
Dmessages.h22 NOISE_HASH_LEN = BLAKE2S_HASH_SIZE enumerator