Skip to content

crypto: fix regression in hash result buffer handling

Daniel P. Berrangé qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v12 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3crypto/hash: avoid overwriting user supplied result pointercrypto/hash-gcrypt.c crypto/hash-glib.c crypto/hash-gnutls.c +1 more+45 -110 replies
2/3tests: correctly validate result buffer in hash/hmac teststests/unit/test-crypto-hash.c tests/unit/test-crypto-hmac.c+8 -50 replies
3/3include/crypto: clarify @result/@result_len for hash/hmac APIsinclude/crypto/hash.h include/crypto/hmac.h+35 -120 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDorjoy Chowdhury
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] crypto: fix regression in hash result buffer handling

Daniel P. Berrangé (3):
crypto/hash: avoid overwriting user supplied result pointer
tests: correctly validate result buffer in hash/hmac tests include/crypto: clarify @result/@result_len for hash/hmac APIs

 crypto/hash-gcrypt.c          | 15 ++++++++++++---
 crypto/hash-glib.c            | 11 +++++++++--
 crypto/hash-gnutls.c          | 16 +++++++++++++---
 crypto/hash-nettle.c          | 14 +++++++++++---
 include/crypto/hash.h         | 30 +++++++++++++++++++++++-------
 include/crypto/hmac.h         | 17 ++++++++++++-----
 tests/unit/test-crypto-hash.c |  7 ++++---
 tests/unit/test-crypto-hmac.c |  6 ++++--
 8 files changed, 88 insertions(+), 28 deletions(-)
Signature · 1 line
2.46.0