Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/wireguard/
Dnoise.c309 u8 i_hash[BLAKE2S_HASH_SIZE] __aligned(__alignof__(u32)); in hmac()
313 blake2s_init(&state, BLAKE2S_HASH_SIZE); in hmac()
322 blake2s_init(&state, BLAKE2S_HASH_SIZE); in hmac()
330 blake2s_init(&state, BLAKE2S_HASH_SIZE); in hmac()
332 blake2s_update(&state, i_hash, BLAKE2S_HASH_SIZE); in hmac()
335 memcpy(out, i_hash, BLAKE2S_HASH_SIZE); in hmac()
337 memzero_explicit(i_hash, BLAKE2S_HASH_SIZE); in hmac()
348 u8 output[BLAKE2S_HASH_SIZE + 1]; in kdf()
349 u8 secret[BLAKE2S_HASH_SIZE]; in kdf()
352 (first_len > BLAKE2S_HASH_SIZE || in kdf()
[all …]
Dmessages.h22 NOISE_HASH_LEN = BLAKE2S_HASH_SIZE
/kernel/linux/linux-5.10/lib/crypto/
Dblake2s-selftest.c63 static const u8 blake2s_testvecs[][BLAKE2S_HASH_SIZE] __initconst = {
550 u8 hash[BLAKE2S_HASH_SIZE]; in blake2s_selftest()
563 int outlen = 1 + i % BLAKE2S_HASH_SIZE; in blake2s_selftest()
/kernel/linux/linux-5.10/include/crypto/
Dblake2s.h16 BLAKE2S_HASH_SIZE = 32, enumerator
80 WARN_ON(IS_ENABLED(DEBUG) && (!outlen || outlen > BLAKE2S_HASH_SIZE || in blake2s_init_key()
96 outlen > BLAKE2S_HASH_SIZE || keylen > BLAKE2S_KEY_SIZE || in blake2s()
/kernel/linux/linux-5.10/drivers/char/
Drandom.c622 POOL_BITS = BLAKE2S_HASH_SIZE * 8,
632 .hash.h = { BLAKE2S_IV0 ^ (0x01010000 | BLAKE2S_HASH_SIZE),
635 .hash.outlen = BLAKE2S_HASH_SIZE,
665 u8 seed[BLAKE2S_HASH_SIZE], next_key[BLAKE2S_HASH_SIZE]; in extract_entropy()
686 blake2s_init_key(&input_pool.hash, BLAKE2S_HASH_SIZE, next_key, sizeof(next_key)); in extract_entropy()
692 i = min_t(size_t, len, BLAKE2S_HASH_SIZE); in extract_entropy()