]> git.ipfire.org Git - thirdparty/qemu.git/commit
crypto/hash-gcrypt: Implement new hash API
authorAlejandro Zeise <alejandro.zeise@seagate.com>
Tue, 8 Oct 2024 07:57:10 +0000 (09:57 +0200)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 10 Oct 2024 11:33:14 +0000 (12:33 +0100)
commit4fd0a730d76af205441b8ad7a301407a424c5d50
tree837787f603542a45069fe342b4fef07c19c50a8e
parentc6ccd2af60cb6847cc16b06c829265c0e3fee7c1
crypto/hash-gcrypt: Implement new hash API

Implements the new hashing API in the gcrypt hash driver.
Supports creating/destroying a context, updating the context
with input data and obtaining an output hash.

Signed-off-by: Alejandro Zeise <alejandro.zeise@seagate.com>
[ clg: - Dropped qcrypto_hash_supports() in qcrypto_gcrypt_hash_new()
       - Reworked qcrypto_gcrypt_hash_finalize()
       - Handled gcry_md_open() errors in qcrypto_gcrypt_hash_new()
       - Checkpatch fixes ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/hash-gcrypt.c