All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] crypto: robustness fixes to handling of SM3 hash
@ 2026-11-02 12:23 Daniel P. Berrangé
  2026-11-02 12:23 ` [PATCH v2 1/4] crypto: set default initializer hmac/hash arrays to -1 Daniel P. Berrangé
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Daniel P. Berrangé @ 2026-11-02 12:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: Philippe Mathieu-Daudé, Daniel P. Berrangé

Note that patch 4 is best reviewed by applying to git and then using
'git show -b' to hide the huge whitespace indentation change.

Changed in v2:

 * Use array range initializer for setting default value
 * Drop redundant countermeasures now we can gurantee a
   correct default initializer value
 * Drop SM3 conditions in tests
 * Refactor tests to register one test per algorithm

Daniel P. Berrangé (4):
  crypto: set default initializer hmac/hash arrays to -1
  crypto: unconditionally report SM3 hash length
  tests/unit: drop conditionals for SM3
  tests/unit: register one test per hash/hmac algorithm

 crypto/hash-glib.c            |   3 +-
 crypto/hash.c                 |   4 +-
 crypto/hmac-glib.c            |   4 +-
 tests/unit/test-crypto-hash.c | 325 +++++++++++++++-------------------
 tests/unit/test-crypto-hmac.c | 272 +++++++++++++---------------
 5 files changed, 275 insertions(+), 333 deletions(-)

-- 
2.56.0



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-12-04 19:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-02 12:23 [PATCH v2 0/4] crypto: robustness fixes to handling of SM3 hash Daniel P. Berrangé
2026-11-02 12:23 ` [PATCH v2 1/4] crypto: set default initializer hmac/hash arrays to -1 Daniel P. Berrangé
2026-12-04 19:51   ` Eric Blake
2026-11-02 12:23 ` [PATCH v2 2/4] crypto: unconditionally report SM3 hash length Daniel P. Berrangé
2026-12-04 19:52   ` Eric Blake
2026-11-02 12:23 ` [PATCH v2 3/4] tests/unit: drop conditionals for SM3 Daniel P. Berrangé
2026-12-04 19:53   ` Eric Blake
2026-11-02 12:23 ` [PATCH v2 4/4] tests/unit: register one test per hash/hmac algorithm Daniel P. Berrangé
2026-12-04 19:57   ` Eric Blake
2026-11-12 18:00 ` [PATCH v2 0/4] crypto: robustness fixes to handling of SM3 hash Daniel P. Berrangé
2026-12-04 14:00   ` Daniel P. Berrangé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.