Adapt return status to 2.x

Signed-off-by: Przemyslaw Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
Przemyslaw Stekiel 2021-09-30 15:51:05 +02:00
parent 7ab374f6b5
commit 6c0ec0eb52

View file

@ -1250,7 +1250,7 @@ int mbedtls_cipher_crypt( mbedtls_cipher_context_t *ctx,
{
status = psa_cipher_set_iv( &cipher_op, iv, iv_len );
if( status != PSA_SUCCESS )
return( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );
return( MBEDTLS_ERR_CIPHER_HW_ACCEL_FAILED );
}
status = psa_cipher_update( &cipher_op,