Commit 71966db0 authored by Piotr Ciura's avatar Piotr Ciura Committed by Fabio Utzig
Browse files

boot: Support for nrf52840 with ecc keys and cryptocell



Added traslation for cryptocell peripheral for use with chip
without TrustZone.

Signed-off-by: default avatarPiotr Ciura <piotr.ciura@nordicsemi.no>
parent 1cb076c2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -13,6 +13,13 @@
#include <devicetree.h>
#include <string.h>

/*
 * Name translation for peripherals with only one type of access available.
 */
#if !defined(NRF_TRUSTZONE_NONSECURE) && defined(CONFIG_ARM_TRUSTZONE_M)
#define NRF_CRYPTOCELL   NRF_CRYPTOCELL_S
#endif

typedef nrf_cc310_bl_hash_context_sha256_t bootutil_sha256_context;

int cc310_ecdsa_verify_secp256r1(uint8_t *hash,