mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Restructure wrapper script
Signed-off-by: Ryan Everett <ryan.everett@arm.com>
This commit is contained in:
@ -143,7 +143,9 @@ class PSAWrapperGenerator(c_wrapper_generator.Base):
|
|||||||
"""Whether the specified buffer argument to a PSA function should be copied.
|
"""Whether the specified buffer argument to a PSA function should be copied.
|
||||||
"""
|
"""
|
||||||
# Proof-of-concept: just instrument one function for now
|
# 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
|
return True
|
||||||
if function_name in ('psa_import_key',
|
if function_name in ('psa_import_key',
|
||||||
'psa_export_key',
|
'psa_export_key',
|
||||||
|
Reference in New Issue
Block a user