Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int crypto_platform_setup( crypto_platform_ctx *ctx )
NRF_CRYPTOCELL->ENABLE = 1;

if( SaSi_LibInit( &ctx->rndState, &rndWorkBuff ) != 0 )
return ( MBEDTLS_ERR_PLATFORM_HW_FAILED );
return ( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );

return ( 0 );
}
Expand Down
5 changes: 5 additions & 0 deletions features/mbedtls/platform/inc/platform_mbed.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@
#include "mbedtls_device.h"
#endif

/*
* MBEDTLS_ERR_PLATFORM_HW_FAILED is deprecated and should not be used.
*/
#define MBEDTLS_ERR_PLATFORM_HW_FAILED -0x0080

#define MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED -0x0070