crypto_data_tests: add entry for SM3

Currently the lambda function is set to None meaning that no test data
will be automatically generated. This is an hashlib Python library
limitation though and it can be addressed in the future whenever the
Python library is upgraded or a different solution is found to compute
hashes.

Signed-off-by: Valerio Setti <[email protected]>
This commit is contained in:
Valerio Setti
2026-09-09 10:13:18 +02:00
parent 8e8a8a1716
commit ba6f9a62d7
@@ -59,6 +59,7 @@ class HashPSALowLevel:
'PSA_ALG_ASCON_HASH256': None, #lambda data: ascon.ascon_hash(data),
'PSA_ALG_BLAKE2S_HASH256': lambda data: hashlib.blake2s(data).hexdigest(),
'PSA_ALG_BLAKE2B_HASH512': lambda data: hashlib.blake2b(data).hexdigest(),
'PSA_ALG_SM3': None, #lambda data: hashlib.new('sm3').hexdigest(),
} #type: Dict[str, Optional[Callable[[bytes], str]]]
@staticmethod