Platform: Generate attestation key and program it to OTP on Musca-B1
Attestation key is stored in OTP at offset 0x30 words.
The number of zero bits in attestation key is stored in OTP
at offset 0x2F words.
Default attestation key is generated based on ECC secp256r1 curve.
Change-Id: If384f334f95bfcf0a8290d9a98a1dcc4cac3f670
Signed-off-by: Xu Yong <yong.xu@arm.com>
diff --git a/bl2/ext/mcuboot/include/config-boot.h b/bl2/ext/mcuboot/include/config-boot.h
index 71667eb..352c117 100644
--- a/bl2/ext/mcuboot/include/config-boot.h
+++ b/bl2/ext/mcuboot/include/config-boot.h
@@ -68,6 +68,10 @@
#define MBEDTLS_CIPHER_C
#define MBEDTLS_AES_C
#define MBEDTLS_CCM_C
+#define MBEDTLS_ECDSA_C
+#define MBEDTLS_ECP_C
+#define MBEDTLS_ECP_DP_SECP256R1_ENABLED
+#define MBEDTLS_ECP_DP_CURVE25519_ENABLED
#endif /* CRYPTO_HW_ACCELERATOR_OTP_PROVISIONING */
#ifdef CRYPTO_HW_ACCELERATOR