Skip to content

Commit 71966db

Browse files
piociuutzig
authored andcommitted
boot: Support for nrf52840 with ecc keys and cryptocell
Added traslation for cryptocell peripheral for use with chip without TrustZone. Signed-off-by: Piotr Ciura <piotr.ciura@nordicsemi.no>
1 parent 1cb076c commit 71966db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ext/nrf/cc310_glue.h

+7
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@
1313
#include <devicetree.h>
1414
#include <string.h>
1515

16+
/*
17+
* Name translation for peripherals with only one type of access available.
18+
*/
19+
#if !defined(NRF_TRUSTZONE_NONSECURE) && defined(CONFIG_ARM_TRUSTZONE_M)
20+
#define NRF_CRYPTOCELL NRF_CRYPTOCELL_S
21+
#endif
22+
1623
typedef nrf_cc310_bl_hash_context_sha256_t bootutil_sha256_context;
1724

1825
int cc310_ecdsa_verify_secp256r1(uint8_t *hash,

0 commit comments

Comments
 (0)