Lines Matching full:hash
10 * hash function that produces hashes of fixed length BLAKE2B_HASH_SIZE, so that
11 * hash-test-template.h can be reused to test it.
26 * Generate the HASH_KUNIT_CASES using hash-test-template.h. These test BLAKE2b
27 * with a key length of 0 and a hash length of BLAKE2B_HASH_SIZE.
29 #define HASH blake2b_default
35 #include "hash-test-template.h"
39 * length and hash length.
46 u8 *hash = alloc_buf(test, BLAKE2B_HASH_SIZE);
55 blake2b(key, key_len, data, data_len, hash, out_len);
56 blake2b_update(&main_ctx, hash, out_len);
109 u8 hash[BLAKE2B_HASH_SIZE];
112 blake2b(NULL, 0, data, data_len, hash, out_len);
114 KUNIT_ASSERT_MEMEQ(test, hash, guarded_hash, out_len);