tests/unit/test-crypto-hash: accumulative hashing
authorAlejandro Zeise <alejandro.zeise@seagate.com>
Tue, 8 Oct 2024 07:57:16 +0000 (09:57 +0200)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 10 Oct 2024 11:33:46 +0000 (12:33 +0100)
commitd8e99c5cd6f678033293dfe241e494f5df36bf70
tree7385292a76f95f258e84280242f9ee8d53e3d791
parente3c07527f308c0525acb7d00921529ebfacb1523
tests/unit/test-crypto-hash: accumulative hashing

Added an accumulative hashing test. Checks for functionality of
the new hash create, update, finalize and free functions.

Signed-off-by: Alejandro Zeise <alejandro.zeise@seagate.com>
[ clg: - Improved test_hash_accumulate() with g_autofree variables ]
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>
tests/unit/test-crypto-hash.c