Lines Matching full:hash
2 * QEMU Crypto hash algorithms
25 #include "crypto/hash.h"
267 g_autoptr(QCryptoHash) hash = NULL; in test_hash_accumulate()
282 hash = qcrypto_hash_new(i, &error_fatal); in test_hash_accumulate()
283 g_assert(hash != NULL); in test_hash_accumulate()
285 /* Add each iovec to the hash context separately */ in test_hash_accumulate()
287 ret = qcrypto_hash_updatev(hash, in test_hash_accumulate()
294 ret = qcrypto_hash_finalize_bytes(hash, &result, &resultlen, in test_hash_accumulate()
312 g_test_add_func("/crypto/hash/iov", test_hash_iov); in main()
313 g_test_add_func("/crypto/hash/alloc", test_hash_alloc); in main()
314 g_test_add_func("/crypto/hash/prealloc", test_hash_prealloc); in main()
315 g_test_add_func("/crypto/hash/digest", test_hash_digest); in main()
316 g_test_add_func("/crypto/hash/base64", test_hash_base64); in main()
317 g_test_add_func("/crypto/hash/accumulate", test_hash_accumulate); in main()