/kernel/linux/linux-5.10/drivers/net/wireguard/ |
H A D | noise.c | 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() 360 hmac(secret, data, chaining_key, data_len, NOISE_HASH_LEN); in kdf() 394 const u8 chaining_key[NOISE_HASH_LEN]) in derive_keys() 399 chaining_key); in derive_keys() 404 static bool __must_check mix_dh(u8 chaining_key[NOISE_HASH_LEN], in mix_dh() argument 413 kdf(chaining_key, key, NULL, dh_calculation, NOISE_HASH_LEN, in mix_dh() 414 NOISE_SYMMETRIC_KEY_LEN, 0, NOISE_PUBLIC_KEY_LEN, chaining_key); in mix_dh() 419 static bool __must_check mix_precomputed_dh(u8 chaining_key[NOISE_HASH_LEN], in mix_precomputed_dh() argument 426 kdf(chaining_key, ke in mix_precomputed_dh() 344 kdf(u8 *first_dst, u8 *second_dst, u8 *third_dst, const u8 *data, size_t first_len, size_t second_len, size_t third_len, size_t data_len, const u8 chaining_key[NOISE_HASH_LEN]) kdf() argument 392 derive_keys(struct noise_symmetric_key *first_dst, struct noise_symmetric_key *second_dst, const u8 chaining_key[NOISE_HASH_LEN]) derive_keys() argument 442 mix_psk(u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN], u8 key[NOISE_SYMMETRIC_KEY_LEN], const u8 psk[NOISE_SYMMETRIC_KEY_LEN]) mix_psk() argument 454 handshake_init(u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN], const u8 remote_static[NOISE_PUBLIC_KEY_LEN]) handshake_init() argument 485 message_ephemeral(u8 ephemeral_dst[NOISE_PUBLIC_KEY_LEN], const u8 ephemeral_src[NOISE_PUBLIC_KEY_LEN], u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN]) message_ephemeral() argument 591 u8 chaining_key[NOISE_HASH_LEN]; wg_noise_handshake_consume_initiation() local 736 u8 chaining_key[NOISE_HASH_LEN]; wg_noise_handshake_consume_response() local [all...] |
H A D | noise.h | 81 u8 chaining_key[NOISE_HASH_LEN]; member
|
/kernel/linux/linux-6.6/drivers/net/wireguard/ |
H A D | noise.c | 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() 360 hmac(secret, data, chaining_key, data_len, NOISE_HASH_LEN); in kdf() 394 const u8 chaining_key[NOISE_HASH_LEN]) in derive_keys() 399 chaining_key); in derive_keys() 404 static bool __must_check mix_dh(u8 chaining_key[NOISE_HASH_LEN], in mix_dh() argument 413 kdf(chaining_key, key, NULL, dh_calculation, NOISE_HASH_LEN, in mix_dh() 414 NOISE_SYMMETRIC_KEY_LEN, 0, NOISE_PUBLIC_KEY_LEN, chaining_key); in mix_dh() 419 static bool __must_check mix_precomputed_dh(u8 chaining_key[NOISE_HASH_LEN], in mix_precomputed_dh() argument 426 kdf(chaining_key, ke in mix_precomputed_dh() 344 kdf(u8 *first_dst, u8 *second_dst, u8 *third_dst, const u8 *data, size_t first_len, size_t second_len, size_t third_len, size_t data_len, const u8 chaining_key[NOISE_HASH_LEN]) kdf() argument 392 derive_keys(struct noise_symmetric_key *first_dst, struct noise_symmetric_key *second_dst, const u8 chaining_key[NOISE_HASH_LEN]) derive_keys() argument 442 mix_psk(u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN], u8 key[NOISE_SYMMETRIC_KEY_LEN], const u8 psk[NOISE_SYMMETRIC_KEY_LEN]) mix_psk() argument 454 handshake_init(u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN], const u8 remote_static[NOISE_PUBLIC_KEY_LEN]) handshake_init() argument 485 message_ephemeral(u8 ephemeral_dst[NOISE_PUBLIC_KEY_LEN], const u8 ephemeral_src[NOISE_PUBLIC_KEY_LEN], u8 chaining_key[NOISE_HASH_LEN], u8 hash[NOISE_HASH_LEN]) message_ephemeral() argument 591 u8 chaining_key[NOISE_HASH_LEN]; wg_noise_handshake_consume_initiation() local 736 u8 chaining_key[NOISE_HASH_LEN]; wg_noise_handshake_consume_response() local [all...] |
H A D | noise.h | 81 u8 chaining_key[NOISE_HASH_LEN]; member
|