Searched refs:BLAKE2S_HASH_SIZE (Results 1 – 6 of 6) sorted by relevance
| /linux/lib/crypto/tests/ |
| H A D | blake2s_kunit.c | 15 u8 out[BLAKE2S_HASH_SIZE]) in blake2s_default() argument 17 blake2s(NULL, 0, data, len, out, BLAKE2S_HASH_SIZE); in blake2s_default() 22 blake2s_init(ctx, BLAKE2S_HASH_SIZE); in blake2s_init_default() 31 #define HASH_SIZE BLAKE2S_HASH_SIZE 48 u8 main_hash[BLAKE2S_HASH_SIZE]; in test_blake2s_all_key_and_hash_lens() 51 blake2s_init(&main_ctx, BLAKE2S_HASH_SIZE); in test_blake2s_all_key_and_hash_lens() 54 for (int out_len = 1; out_len <= BLAKE2S_HASH_SIZE; out_len++) { in test_blake2s_all_key_and_hash_lens() 61 BLAKE2S_HASH_SIZE); in test_blake2s_all_key_and_hash_lens() 76 u8 hash1[BLAKE2S_HASH_SIZE]; in test_blake2s_with_guarded_key_buf() 77 u8 hash2[BLAKE2S_HASH_SIZE]; in test_blake2s_with_guarded_key_buf() [all …]
|
| H A D | blake2s-testvecs.h | 6 u8 digest[BLAKE2S_HASH_SIZE]; 226 static const u8 hash_testvec_consolidated[BLAKE2S_HASH_SIZE] = { 233 static const u8 blake2s_keyed_testvec_consolidated[BLAKE2S_HASH_SIZE] = {
|
| /linux/drivers/net/wireguard/ |
| H A D | noise.c | 309 u8 i_hash[BLAKE2S_HASH_SIZE] __aligned(__alignof__(u32)); in hmac() 313 blake2s_init(&blake, BLAKE2S_HASH_SIZE); in hmac() 322 blake2s_init(&blake, BLAKE2S_HASH_SIZE); in hmac() 330 blake2s_init(&blake, BLAKE2S_HASH_SIZE); in hmac() 332 blake2s_update(&blake, 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 …]
|
| H A D | messages.h | 22 NOISE_HASH_LEN = BLAKE2S_HASH_SIZE
|
| /linux/include/crypto/ |
| H A D | blake2s.h | 16 BLAKE2S_HASH_SIZE = 32, enumerator 103 WARN_ON(IS_ENABLED(DEBUG) && (!outlen || outlen > BLAKE2S_HASH_SIZE || in blake2s_init_key() 152 outlen > BLAKE2S_HASH_SIZE || keylen > BLAKE2S_KEY_SIZE || in blake2s()
|
| /linux/drivers/char/ |
| H A D | random.c | 633 POOL_BITS = BLAKE2S_HASH_SIZE * 8, 643 .hash.h = { BLAKE2S_IV0 ^ (0x01010000 | BLAKE2S_HASH_SIZE), 646 .hash.outlen = BLAKE2S_HASH_SIZE, 676 u8 seed[BLAKE2S_HASH_SIZE], next_key[BLAKE2S_HASH_SIZE]; in extract_entropy() 705 blake2s_init_key(&input_pool.hash, BLAKE2S_HASH_SIZE, next_key, sizeof(next_key)); in extract_entropy() 711 i = min_t(size_t, len, BLAKE2S_HASH_SIZE); in extract_entropy()
|