mbox series

[0/2] crypto: fix regression in hash result buffer handling

Message ID 20241015125629.301367-1-berrange@redhat.com (mailing list archive)
Headers show
Series crypto: fix regression in hash result buffer handling | expand

Message

Daniel P. Berrangé Oct. 15, 2024, 12:56 p.m. UTC
Daniel P. Berrangé (2):
  crypto/hash: avoid overwriting user supplied result pointer
  tests: correctly validate result buffer in hash/hmac tests

 crypto/hash-gcrypt.c          | 15 ++++++++++++---
 crypto/hash-glib.c            | 11 +++++++++--
 crypto/hash-gnutls.c          | 16 +++++++++++++---
 crypto/hash-nettle.c          | 14 +++++++++++---
 tests/unit/test-crypto-hash.c |  7 ++++---
 tests/unit/test-crypto-hmac.c |  6 ++++--
 6 files changed, 53 insertions(+), 16 deletions(-)