Home
last modified time | relevance | path

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

/Linux-v5.10/lib/crypto/
Dblake2s-selftest.c74 static const u8 blake2s_testvecs[][BLAKE2S_HASH_SIZE] __initconst = {
557 static const u8 blake2s_hmac_testvecs[][BLAKE2S_HASH_SIZE] __initconst = {
570 u8 hash[BLAKE2S_HASH_SIZE]; in blake2s_selftest()
583 int outlen = 1 + i % BLAKE2S_HASH_SIZE; in blake2s_selftest()
612 success &= !memcmp(hash, blake2s_hmac_testvecs[0], BLAKE2S_HASH_SIZE); in blake2s_selftest()
615 success &= !memcmp(hash, blake2s_hmac_testvecs[1], BLAKE2S_HASH_SIZE); in blake2s_selftest()
Dblake2s.c78 u8 i_hash[BLAKE2S_HASH_SIZE] __aligned(__alignof__(u32)); in blake2s256_hmac()
82 blake2s_init(&state, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
91 blake2s_init(&state, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
99 blake2s_init(&state, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
101 blake2s_update(&state, i_hash, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
104 memcpy(out, i_hash, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
106 memzero_explicit(i_hash, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
/Linux-v5.10/include/crypto/
Dblake2s.h17 BLAKE2S_HASH_SIZE = 32, enumerator
75 WARN_ON(IS_ENABLED(DEBUG) && (!outlen || outlen > BLAKE2S_HASH_SIZE || in blake2s_init_key()
91 outlen > BLAKE2S_HASH_SIZE || keylen > BLAKE2S_KEY_SIZE || in blake2s()
/Linux-v5.10/drivers/net/wireguard/
Dnoise.c313 u8 output[BLAKE2S_HASH_SIZE + 1]; in kdf()
314 u8 secret[BLAKE2S_HASH_SIZE]; in kdf()
317 (first_len > BLAKE2S_HASH_SIZE || in kdf()
318 second_len > BLAKE2S_HASH_SIZE || in kdf()
319 third_len > BLAKE2S_HASH_SIZE || in kdf()
332 blake2s256_hmac(output, output, secret, 1, BLAKE2S_HASH_SIZE); in kdf()
339 output[BLAKE2S_HASH_SIZE] = 2; in kdf()
340 blake2s256_hmac(output, output, secret, BLAKE2S_HASH_SIZE + 1, in kdf()
341 BLAKE2S_HASH_SIZE); in kdf()
348 output[BLAKE2S_HASH_SIZE] = 3; in kdf()
[all …]
Dmessages.h22 NOISE_HASH_LEN = BLAKE2S_HASH_SIZE