mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-02 14:57:22 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user