Home
last modified time | relevance | path

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

/linux/lib/crypto/
A Dblake2s.c44 u8 i_hash[BLAKE2S_HASH_SIZE] __aligned(__alignof__(u32)); in blake2s256_hmac()
48 blake2s_init(&state, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
57 blake2s_init(&state, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
65 blake2s_init(&state, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
67 blake2s_update(&state, i_hash, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
70 memcpy(out, i_hash, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
72 memzero_explicit(i_hash, BLAKE2S_HASH_SIZE); in blake2s256_hmac()
A 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()
/linux/drivers/net/wireguard/
A 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()
339 output[BLAKE2S_HASH_SIZE] = 2; in kdf()
341 BLAKE2S_HASH_SIZE); in kdf()
348 output[BLAKE2S_HASH_SIZE] = 3; in kdf()
350 BLAKE2S_HASH_SIZE); in kdf()
355 memzero_explicit(secret, BLAKE2S_HASH_SIZE); in kdf()
[all …]
A Dmessages.h22 NOISE_HASH_LEN = BLAKE2S_HASH_SIZE
/linux/include/crypto/
A 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()

Completed in 8 milliseconds