Lines Matching full:hash
24 * Hash length tested by test_blake2s(). BLAKE2s supports variable-length
30 /* Test the implementation of the BLAKE2s hash algorithm. */
34 u8 hash[HASH_LEN];
58 blake2s_init(&main_ctx, sizeof(hash));
62 /* Compute the BLAKE2s hash of 'i' data bytes. */
65 blake2s_final(&ctx, hash);
73 memcmp(hash, hash2, HASH_LEN) == 0);
76 * Pass the hash to another BLAKE2s context, so that we
77 * incrementally compute the hash of all the hashes.
79 blake2s_update(&main_ctx, hash, HASH_LEN);
82 /* Verify the hash of all the hashes. */
83 blake2s_final(&main_ctx, hash);
85 memcmp(hash, expected_hash_of_hashes, HASH_LEN) == 0);
108 TEST_CASE("BLAKE2s hash", blake2s_case),