bootutil: Remove P224 curve
Signed-off-by: Roland Mikhel <roland.mikhel@arm.com>
Change-Id: I49fad7ede202de4e3c710bf4aa1df195a310b037
diff --git a/boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h b/boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h
index e925717..7f8472b 100644
--- a/boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h
+++ b/boot/cypress/MCUBootApp/config/mcuboot_config/mcuboot_config.h
@@ -37,8 +37,6 @@
/* Uncomment for ECDSA signatures using curve P-256. */
#define MCUBOOT_SIGN_EC256
-// #define MCUBOOT_SIGN_EC
-
/*
* Upgrade mode
*
diff --git a/boot/cypress/MCUBootApp/keys.c b/boot/cypress/MCUBootApp/keys.c
index 4dbd5af..20c0332 100644
--- a/boot/cypress/MCUBootApp/keys.c
+++ b/boot/cypress/MCUBootApp/keys.c
@@ -85,31 +85,6 @@
0xc9, 0x02, 0x03, 0x01, 0x00, 0x01
};
const unsigned int rsa_pub_key_len = 270;
-#elif defined(MCUBOOT_SIGN_EC)
-/* Format of PEM :
- * -----BEGIN PUBLIC KEY-----
- * base64encode(DER)
- * -----END PUBLIC KEY----- */
-#if defined(ECC224_KEY_FILE)
-#include ECC224_KEY_FILE
-#else
-#warning "Used default ECC224 ecdsa_pub_key"
-/* It is OEM_PUB_KEY at this moment for debug purposes */
-/* Autogenerated by imgtool.py, do not edit. */
-const unsigned char ecdsa_pub_key[] = {
- 0x30, 0x4e, 0x30, 0x10, 0x06, 0x07, 0x2a, 0x86,
- 0x48, 0xce, 0x3d, 0x02, 0x01, 0x06, 0x05, 0x2b,
- 0x81, 0x04, 0x00, 0x21, 0x03, 0x3a, 0x00, 0x04,
- 0xa5, 0x8b, 0x18, 0xa4, 0x60, 0x37, 0xf7, 0x0d,
- 0x2b, 0x06, 0xba, 0x4b, 0x4c, 0xd7, 0x8d, 0xec,
- 0x2a, 0x32, 0x5a, 0x0e, 0x52, 0xf4, 0x1b, 0x7c,
- 0x99, 0xec, 0x68, 0x5d, 0x05, 0xc3, 0x6b, 0x7b,
- 0x40, 0x9c, 0xaa, 0xac, 0x90, 0xf4, 0xfc, 0xbe,
- 0x98, 0xe5, 0x3e, 0x86, 0x3d, 0x37, 0xbf, 0x45,
- 0x78, 0x92, 0x27, 0xca, 0x69, 0xe6, 0xf2, 0xc5,
-};
-const unsigned int ecdsa_pub_key_len = 80;
-#endif
#elif defined(MCUBOOT_SIGN_EC256)
/* Format of PEM :
* -----BEGIN PUBLIC KEY-----
@@ -141,7 +116,6 @@
#endif
#if defined(MCUBOOT_SIGN_RSA) || \
- defined(MCUBOOT_SIGN_EC) || \
defined(MCUBOOT_SIGN_EC256)
const struct bootutil_key bootutil_keys[] = {
#if defined(MCUBOOT_SIGN_RSA)
@@ -149,8 +123,7 @@
.key = rsa_pub_key,
.len = &rsa_pub_key_len,
},
-#elif defined(MCUBOOT_SIGN_EC) || \
- defined(MCUBOOT_SIGN_EC256)
+#elif defined(MCUBOOT_SIGN_EC256)
{
.key = ecdsa_pub_key,
.len = &ecdsa_pub_key_len,