| H A 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 handshake_init_chaining_key, NOISE_HASH_LEN); 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 404 mix_dh(u8 chaining_key[NOISE_HASH_LEN],u8 key[NOISE_SYMMETRIC_KEY_LEN],const u8 private[NOISE_PUBLIC_KEY_LEN],const u8 public[NOISE_PUBLIC_KEY_LEN]) mix_dh() argument 419 mix_precomputed_dh(u8 chaining_key[NOISE_HASH_LEN],u8 key[NOISE_SYMMETRIC_KEY_LEN],const u8 precomputed[NOISE_PUBLIC_KEY_LEN]) mix_precomputed_dh() argument 432 mix_hash(u8 hash[NOISE_HASH_LEN],const u8 * src,size_t src_len) mix_hash() 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 455 handshake_init(u8 chaining_key[NOISE_HASH_LEN],u8 hash[NOISE_HASH_LEN],const u8 remote_static[NOISE_PUBLIC_KEY_LEN]) handshake_init() argument 465 message_encrypt(u8 * dst_ciphertext,const u8 * src_plaintext,size_t src_len,u8 key[NOISE_SYMMETRIC_KEY_LEN],u8 hash[NOISE_HASH_LEN]) message_encrypt() argument 475 message_decrypt(u8 * dst_plaintext,const u8 * src_ciphertext,size_t src_len,u8 key[NOISE_SYMMETRIC_KEY_LEN],u8 hash[NOISE_HASH_LEN]) message_decrypt() argument 487 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 488 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 [all...] |