Home
last modified time | relevance | path

Searched refs:blake (Results 1 – 2 of 2) sorted by relevance

/drivers/net/wireguard/
Dcookie.c36 struct blake2s_state blake; in precompute_key() local
38 blake2s_init(&blake, NOISE_SYMMETRIC_KEY_LEN); in precompute_key()
39 blake2s_update(&blake, label, COOKIE_KEY_LABEL_LEN); in precompute_key()
40 blake2s_update(&blake, pubkey, NOISE_PUBLIC_KEY_LEN); in precompute_key()
41 blake2s_final(&blake, key); in precompute_key()
Dnoise.c36 struct blake2s_state blake; in wg_noise_init() local
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()
42 blake2s_update(&blake, identifier_name, sizeof(identifier_name)); in wg_noise_init()
43 blake2s_final(&blake, handshake_init_hash); in wg_noise_init()
434 struct blake2s_state blake; in mix_hash() local
436 blake2s_init(&blake, NOISE_HASH_LEN); in mix_hash()
437 blake2s_update(&blake, hash, NOISE_HASH_LEN); in mix_hash()
438 blake2s_update(&blake, src, src_len); in mix_hash()
439 blake2s_final(&blake, hash); in mix_hash()