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
