crypto: robustness fixes to handling of SM3 hash
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest4 patches 1 replyIn review
- v13 patches 2 repliesSuperseded
Changes in v2 from the cover letter
* 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
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | crypto: set default initializer hmac/hash arrays to -1crypto/ crypto/ | +2 | 0 replies | |
| 2/4 | crypto: unconditionally report SM3 hash lengthcrypto/ | +1 | 0 replies | |
| 3/4 | tests/unit: drop conditionals for SM3tests/ tests/ | +1 | 0 replies | |
| 4/4 | tests/unit: register one test per hash/hmac algorithmtests/ tests/ | +271 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/4] crypto: robustness fixes to handling of SM3 hash
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(-)
Signature · 1 line
2.56.0