Translate GCM_BAD_INPUT to INVALID_ARGUMENT, not NOT_SUPPORTED

This commit is contained in:
Gilles Peskine 2018-08-21 15:07:38 +02:00
parent 28dfea6bb9
commit 8cac2e628e

View file

@ -242,7 +242,7 @@ static psa_status_t mbedtls_to_psa_error( int ret )
case MBEDTLS_ERR_GCM_AUTH_FAILED:
return( PSA_ERROR_INVALID_SIGNATURE );
case MBEDTLS_ERR_GCM_BAD_INPUT:
return( PSA_ERROR_NOT_SUPPORTED );
return( PSA_ERROR_INVALID_ARGUMENT );
case MBEDTLS_ERR_GCM_HW_ACCEL_FAILED:
return( PSA_ERROR_HARDWARE_FAILURE );