1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-12-24 17:41:01 +03:00

Generate test wrappers for hash functions

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
This commit is contained in:
Thomas Daubney
2024-01-25 16:48:09 +00:00
parent 51ffac9f40
commit 45c8586a91
2 changed files with 40 additions and 0 deletions

View File

@@ -154,6 +154,12 @@ class PSAWrapperGenerator(c_wrapper_generator.Base):
'psa_sign_hash',
'psa_verify_hash'):
return True
if function_name in ('psa_hash_update',
'psa_hash_finish',
'psa_hash_verify',
'psa_hash_compute',
'psa_hash_compare'):
return True
return False
def _write_function_call(self, out: typing_util.Writable,