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
@ -267,6 +267,8 @@ psa_status_t mbedtls_to_psa_error( int ret )
|
|||||||
return( PSA_ERROR_NOT_SUPPORTED );
|
return( PSA_ERROR_NOT_SUPPORTED );
|
||||||
case MBEDTLS_ERR_PK_SIG_LEN_MISMATCH:
|
case MBEDTLS_ERR_PK_SIG_LEN_MISMATCH:
|
||||||
return( PSA_ERROR_INVALID_SIGNATURE );
|
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:
|
case MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED:
|
||||||
return( PSA_ERROR_HARDWARE_FAILURE );
|
return( PSA_ERROR_HARDWARE_FAILURE );
|
||||||
|
Loading…
Reference in New Issue
Block a user