From 6c0ec0eb52ff9578cb1734f9d0149944aa281317 Mon Sep 17 00:00:00 2001 From: Przemyslaw Stekiel Date: Thu, 30 Sep 2021 15:51:05 +0200 Subject: [PATCH] Adapt return status to 2.x Signed-off-by: Przemyslaw Stekiel --- library/cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cipher.c b/library/cipher.c index c9871ebcc..b956030da 100644 --- a/library/cipher.c +++ b/library/cipher.c @@ -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,