diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 2c37aebf79..d4138e0c41 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -8503,4 +8503,11 @@ error: return status; } +void psa_crypto_input_copy_free(psa_crypto_input_copy_t *input_copy) +{ + mbedtls_free(input_copy->buffer); + input_copy->buffer = NULL; + input_copy->len = 0; +} + #endif /* MBEDTLS_PSA_CRYPTO_C */