Symbol: BLAKE2S_HASH_SIZE
drivers/char/random.c
620
POOL_BITS = BLAKE2S_HASH_SIZE * 8,
drivers/char/random.c
630
.hash.h = { BLAKE2S_IV0 ^ (0x01010000 | BLAKE2S_HASH_SIZE),
drivers/char/random.c
633
.hash.outlen = BLAKE2S_HASH_SIZE,
drivers/char/random.c
663
u8 seed[BLAKE2S_HASH_SIZE], next_key[BLAKE2S_HASH_SIZE];
drivers/char/random.c
692
blake2s_init_key(&input_pool.hash, BLAKE2S_HASH_SIZE, next_key, sizeof(next_key));
drivers/char/random.c
698
i = min_t(size_t, len, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/messages.h
22
NOISE_HASH_LEN = BLAKE2S_HASH_SIZE
drivers/net/wireguard/noise.c
309
u8 i_hash[BLAKE2S_HASH_SIZE] __aligned(__alignof__(u32));
drivers/net/wireguard/noise.c
313
blake2s_init(&blake, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/noise.c
322
blake2s_init(&blake, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/noise.c
330
blake2s_init(&blake, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/noise.c
332
blake2s_update(&blake, i_hash, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/noise.c
335
memcpy(out, i_hash, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/noise.c
337
memzero_explicit(i_hash, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/noise.c
348
u8 output[BLAKE2S_HASH_SIZE + 1];
drivers/net/wireguard/noise.c
349
u8 secret[BLAKE2S_HASH_SIZE];
drivers/net/wireguard/noise.c
352
(first_len > BLAKE2S_HASH_SIZE ||
drivers/net/wireguard/noise.c
353
second_len > BLAKE2S_HASH_SIZE ||
drivers/net/wireguard/noise.c
354
third_len > BLAKE2S_HASH_SIZE ||
drivers/net/wireguard/noise.c
367
hmac(output, output, secret, 1, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/noise.c
374
output[BLAKE2S_HASH_SIZE] = 2;
drivers/net/wireguard/noise.c
375
hmac(output, output, secret, BLAKE2S_HASH_SIZE + 1, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/noise.c
382
output[BLAKE2S_HASH_SIZE] = 3;
drivers/net/wireguard/noise.c
383
hmac(output, output, secret, BLAKE2S_HASH_SIZE + 1, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/noise.c
388
memzero_explicit(secret, BLAKE2S_HASH_SIZE);
drivers/net/wireguard/noise.c
389
memzero_explicit(output, BLAKE2S_HASH_SIZE + 1);
include/crypto/blake2s.h
103
WARN_ON(IS_ENABLED(DEBUG) && (!outlen || outlen > BLAKE2S_HASH_SIZE ||
include/crypto/blake2s.h
152
outlen > BLAKE2S_HASH_SIZE || keylen > BLAKE2S_KEY_SIZE ||
lib/crypto/tests/blake2s-testvecs.h
226
static const u8 hash_testvec_consolidated[BLAKE2S_HASH_SIZE] = {
lib/crypto/tests/blake2s-testvecs.h
233
static const u8 blake2s_keyed_testvec_consolidated[BLAKE2S_HASH_SIZE] = {
lib/crypto/tests/blake2s-testvecs.h
6
u8 digest[BLAKE2S_HASH_SIZE];
lib/crypto/tests/blake2s_kunit.c
105
for (int out_len = 1; out_len <= BLAKE2S_HASH_SIZE; out_len++) {
lib/crypto/tests/blake2s_kunit.c
106
u8 hash[BLAKE2S_HASH_SIZE];
lib/crypto/tests/blake2s_kunit.c
15
u8 out[BLAKE2S_HASH_SIZE])
lib/crypto/tests/blake2s_kunit.c
17
blake2s(NULL, 0, data, len, out, BLAKE2S_HASH_SIZE);
lib/crypto/tests/blake2s_kunit.c
22
blake2s_init(ctx, BLAKE2S_HASH_SIZE);
lib/crypto/tests/blake2s_kunit.c
31
#define HASH_SIZE BLAKE2S_HASH_SIZE
lib/crypto/tests/blake2s_kunit.c
48
u8 main_hash[BLAKE2S_HASH_SIZE];
lib/crypto/tests/blake2s_kunit.c
51
blake2s_init(&main_ctx, BLAKE2S_HASH_SIZE);
lib/crypto/tests/blake2s_kunit.c
54
for (int out_len = 1; out_len <= BLAKE2S_HASH_SIZE; out_len++) {
lib/crypto/tests/blake2s_kunit.c
61
BLAKE2S_HASH_SIZE);
lib/crypto/tests/blake2s_kunit.c
76
u8 hash1[BLAKE2S_HASH_SIZE];
lib/crypto/tests/blake2s_kunit.c
77
u8 hash2[BLAKE2S_HASH_SIZE];
lib/crypto/tests/blake2s_kunit.c
84
hash1, BLAKE2S_HASH_SIZE);
lib/crypto/tests/blake2s_kunit.c
86
hash2, BLAKE2S_HASH_SIZE);
lib/crypto/tests/blake2s_kunit.c
87
KUNIT_ASSERT_MEMEQ(test, hash1, hash2, BLAKE2S_HASH_SIZE);
lib/crypto/tests/blake2s_kunit.c
89
blake2s_init_key(&ctx, BLAKE2S_HASH_SIZE, guarded_key, key_len);
lib/crypto/tests/blake2s_kunit.c
92
KUNIT_ASSERT_MEMEQ(test, hash1, hash2, BLAKE2S_HASH_SIZE);