1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-11-20 01:02:18 +03:00

Add MBEDTLS_PSA_COPY_CALLER_BUFFERS config option

This allows us to entirely remove copying code, where the convenience
macros are used for copying.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
David Horstmann
2023-11-29 17:24:08 +00:00
parent 34980bd832
commit c0a2c30252
2 changed files with 20 additions and 0 deletions

View File

@@ -1570,6 +1570,19 @@
*/
//#define MBEDTLS_PSA_INJECT_ENTROPY
/**
* \def MBEDTLS_PSA_COPY_CALLER_BUFFERS
*
* Make local copies of buffers supplied by the callers of PSA functions.
*
* This should be enabled whenever caller-supplied buffers are owned by
* an untrusted party, for example where arguments to PSA calls are passed
* across a trust boundary.
*
* Note: Enabling this option increases memory usage and code size.
*/
#define MBEDTLS_PSA_COPY_CALLER_BUFFERS
/**
* \def MBEDTLS_RSA_NO_CRT
*