sim: Remove P224 curve references
MCUBoot dropped P224 curve support as
there is little interest in using it.
The simulator threw an error as P224
was never supported, this was removed.
Signed-off-by: Roland Mikhel <roland.mikhel@arm.com>
Change-Id: I96011e9b00dbc3a6f7590db365a5f480d85394e1
diff --git a/sim/src/caps.rs b/sim/src/caps.rs
index 32feba5..e7240d1 100644
--- a/sim/src/caps.rs
+++ b/sim/src/caps.rs
@@ -1,6 +1,6 @@
// Copyright (c) 2017-2021 Linaro LTD
// Copyright (c) 2019 JUUL Labs
-// Copyright (c) 2019-2021 Arm Limited
+// Copyright (c) 2019-2023 Arm Limited
//
// SPDX-License-Identifier: Apache-2.0
@@ -11,23 +11,22 @@
#[allow(unused)]
pub enum Caps {
RSA2048 = (1 << 0),
- EcdsaP224 = (1 << 1),
- EcdsaP256 = (1 << 2),
- SwapUsingScratch = (1 << 3),
- OverwriteUpgrade = (1 << 4),
- EncRsa = (1 << 5),
- EncKw = (1 << 6),
- ValidatePrimarySlot = (1 << 7),
- RSA3072 = (1 << 8),
- Ed25519 = (1 << 9),
- EncEc256 = (1 << 10),
- SwapUsingMove = (1 << 11),
- DowngradePrevention = (1 << 12),
- EncX25519 = (1 << 13),
- Bootstrap = (1 << 14),
- Aes256 = (1 << 15),
- RamLoad = (1 << 16),
- DirectXip = (1 << 17),
+ EcdsaP256 = (1 << 1),
+ SwapUsingScratch = (1 << 2),
+ OverwriteUpgrade = (1 << 3),
+ EncRsa = (1 << 4),
+ EncKw = (1 << 5),
+ ValidatePrimarySlot = (1 << 6),
+ RSA3072 = (1 << 7),
+ Ed25519 = (1 << 8),
+ EncEc256 = (1 << 9),
+ SwapUsingMove = (1 << 10),
+ DowngradePrevention = (1 << 11),
+ EncX25519 = (1 << 12),
+ Bootstrap = (1 << 13),
+ Aes256 = (1 << 14),
+ RamLoad = (1 << 15),
+ DirectXip = (1 << 16),
}
impl Caps {
@@ -38,7 +37,7 @@
/// Does this build have ECDSA of some type enabled for signatures.
pub fn has_ecdsa() -> bool {
- Caps::EcdsaP256.present() || Caps::EcdsaP224.present()
+ Caps::EcdsaP256.present()
}
/// Query for the number of images that have been configured into this