Translate MBEDTLS_ERR_PK_BUFFER_TOO_SMALL for PSA
The error is currently never returned to any function that PSA calls, but keep mbedtls_to_psa_error up to date in case this changes. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
908982b275
commit
f9f1bdfa7b
1 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,8 @@ psa_status_t mbedtls_to_psa_error( int ret )
|
|||
return( PSA_ERROR_NOT_SUPPORTED );
|
||||
case MBEDTLS_ERR_PK_SIG_LEN_MISMATCH:
|
||||
return( PSA_ERROR_INVALID_SIGNATURE );
|
||||
case MBEDTLS_ERR_PK_BUFFER_TOO_SMALL:
|
||||
return( PSA_ERROR_BUFFER_TOO_SMALL );
|
||||
|
||||
case MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED:
|
||||
return( PSA_ERROR_HARDWARE_FAILURE );
|
||||
|
|
Loading…
Reference in a new issue