Searched refs:BLAKE2S_HASH_SIZE (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/drivers/net/wireguard/ |
H A D | noise.c | 322 blake2s_init(&state, BLAKE2S_HASH_SIZE); in hmac() 335 memcpy(out, 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() 353 second_len > BLAKE2S_HASH_SIZE || in kdf() 354 third_len > BLAKE2S_HASH_SIZE || in kdf() 374 output[BLAKE2S_HASH_SIZE] = 2; in kdf() 375 hmac(output, output, secret, BLAKE2S_HASH_SIZE + 1, BLAKE2S_HASH_SIZE); in kdf() 382 output[BLAKE2S_HASH_SIZE] = 3; in kdf() [all …]
|
H A D | messages.h | 22 NOISE_HASH_LEN = BLAKE2S_HASH_SIZE
|
/openbmc/linux/include/crypto/ |
H A D | blake2s.h | 16 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()
|
/openbmc/linux/lib/crypto/ |
H A D | blake2s-selftest.c | 65 static const u8 blake2s_testvecs[][BLAKE2S_HASH_SIZE] __initconst = { 552 u8 hash[BLAKE2S_HASH_SIZE]; in blake2s_digest_test() 565 int outlen = 1 + i % BLAKE2S_HASH_SIZE; in blake2s_digest_test()
|
/openbmc/linux/drivers/char/ |
H A D | random.c | 611 POOL_BITS = BLAKE2S_HASH_SIZE * 8, 621 .hash.h = { BLAKE2S_IV0 ^ (0x01010000 | BLAKE2S_HASH_SIZE), 624 .hash.outlen = BLAKE2S_HASH_SIZE, 654 u8 seed[BLAKE2S_HASH_SIZE], next_key[BLAKE2S_HASH_SIZE]; in extract_entropy() 683 blake2s_init_key(&input_pool.hash, BLAKE2S_HASH_SIZE, next_key, sizeof(next_key)); in extract_entropy() 689 i = min_t(size_t, len, BLAKE2S_HASH_SIZE); in extract_entropy()
|