Skip to content

Commit 4794389

Browse files
Ron EldorRon Eldor
authored andcommitted
Rename error codes
1. Rename error codes to fit Mbed TLS error code names. 2. Remove the Invalid input error code, as it's not used anymore.
1 parent 127b68f commit 4794389

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

features/cryptocell/FEATURE_CRYPTOCELL310/TARGET_MCU_NRF52840/crypto_platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int crypto_platform_setup( crypto_platform_ctx *ctx )
3030
NRF_CRYPTOCELL->ENABLE = 1;
3131

3232
if( SaSi_LibInit( &ctx->rndState, &rndWorkBuff ) != 0 )
33-
return ( MBEDTLS_PLATFORM_HW_FAILED );
33+
return ( MBEDTLS_ERR_PLATFORM_HW_FAILED );
3434

3535
return ( 0 );
3636
}

features/mbedtls/platform/inc/platform_mbed.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@
2525
#include "mbedtls_device.h"
2626
#endif
2727

28-
#define MBEDTLS_PLATFORM_INVALID_DATA -0x0080
29-
#define MBEDTLS_PLATFORM_HW_FAILED -0x0082
28+
#define MBEDTLS_ERR_PLATFORM_HW_FAILED -0x0080

0 commit comments

Comments
 (0)