1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

Merge pull request #1156 from Ryan-Everett-arm/key-derivation-buffer-protection

Add buffer copying to the Key Derivation API
This commit is contained in:
David Horstmann
2024-02-15 11:54:20 +00:00
committed by GitHub
3 changed files with 55 additions and 18 deletions

View File

@ -145,6 +145,9 @@ class PSAWrapperGenerator(c_wrapper_generator.Base):
# Proof-of-concept: just instrument one function for now
if function_name == 'psa_cipher_encrypt':
return True
if function_name in ('psa_key_derivation_output_bytes',
'psa_key_derivation_input_bytes'):
return True
if function_name in ('psa_import_key',
'psa_export_key',
'psa_export_public_key'):