tests: correctly validate result buffer in hash/hmac tests
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 15 Oct 2024 12:26:38 +0000 (13:26 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 22 Oct 2024 10:44:23 +0000 (11:44 +0100)
commit164f2be1b513c16dfa65f092f223310992c29828
treea5ad988389cd824d2801baabca1adce939d640d8
parentdde538c9a76f328a92c532893e97e18785d57364
tests: correctly validate result buffer in hash/hmac tests

Validate that the pre-allocated buffer pointer was not overwritten
by the hash/hmac APIs.

Reviewed-by: Dorjoy Chowdhury <dorjoychy111@gmail.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
tests/unit/test-crypto-hash.c
tests/unit/test-crypto-hmac.c