Restructure wrapper script

Signed-off-by: Ryan Everett <ryan.everett@arm.com>
This commit is contained in:
Ryan Everett 2024-01-25 11:55:23 +00:00
parent 198a4d98d5
commit 0f54727bf4

View File

@ -143,7 +143,9 @@ class PSAWrapperGenerator(c_wrapper_generator.Base):
"""Whether the specified buffer argument to a PSA function should be copied.
"""
# Proof-of-concept: just instrument one function for now
if function_name == 'psa_cipher_encrypt' or function_name == 'psa_key_derivation_output_bytes' or function_name == 'psa_key_derivation_input_bytes':
if function_name == 'psa_cipher_encrypt':
return True
if function_name == 'psa_key_derivation_output_bytes' or function_name == 'psa_key_derivation_input_bytes':
return True
if function_name in ('psa_import_key',
'psa_export_key',