mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 14:45:32 +00:00
Translate GCM_BAD_INPUT to INVALID_ARGUMENT, not NOT_SUPPORTED
This commit is contained in:
parent
28dfea6bb9
commit
8cac2e628e
|
@ -242,7 +242,7 @@ static psa_status_t mbedtls_to_psa_error( int ret )
|
||||||
case MBEDTLS_ERR_GCM_AUTH_FAILED:
|
case MBEDTLS_ERR_GCM_AUTH_FAILED:
|
||||||
return( PSA_ERROR_INVALID_SIGNATURE );
|
return( PSA_ERROR_INVALID_SIGNATURE );
|
||||||
case MBEDTLS_ERR_GCM_BAD_INPUT:
|
case MBEDTLS_ERR_GCM_BAD_INPUT:
|
||||||
return( PSA_ERROR_NOT_SUPPORTED );
|
return( PSA_ERROR_INVALID_ARGUMENT );
|
||||||
case MBEDTLS_ERR_GCM_HW_ACCEL_FAILED:
|
case MBEDTLS_ERR_GCM_HW_ACCEL_FAILED:
|
||||||
return( PSA_ERROR_HARDWARE_FAILURE );
|
return( PSA_ERROR_HARDWARE_FAILURE );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue