Merge pull request #1133 from davidhorstmann-arm/copying-aead-2.28

[Backport 2.28] Copy buffers in AEAD
This commit is contained in:
David Horstmann
2024-02-20 16:07:36 +00:00
committed by GitHub
4 changed files with 76 additions and 12 deletions

View File

@@ -150,7 +150,8 @@ class PSAWrapperGenerator(c_wrapper_generator.Base):
_buffer_name: Optional[str]) -> bool:
"""Whether the specified buffer argument to a PSA function should be copied.
"""
# Proof-of-concept: just instrument one function for now
if function_name.startswith('psa_aead'):
return True
if function_name == 'psa_cipher_encrypt':
return True
if function_name in ('psa_key_derivation_output_bytes',