Infineon: Switch to 1.9.0 code base, add xmc7000 family support, refactor memory layer
diff --git a/sim/src/caps.rs b/sim/src/caps.rs
index 3fbf4c3..5b1b8e5 100644
--- a/sim/src/caps.rs
+++ b/sim/src/caps.rs
@@ -1,4 +1,4 @@
-// Copyright (c) 2017-2019 Linaro LTD
+// Copyright (c) 2017-2021 Linaro LTD
// Copyright (c) 2019 JUUL Labs
// Copyright (c) 2019-2021 Arm Limited
//
@@ -37,6 +37,11 @@
(caps as u32) & (self as u32) != 0
}
+ /// Does this build have ECDSA of some type enabled for signatures.
+ pub fn has_ecdsa() -> bool {
+ Caps::EcdsaP256.present() || Caps::EcdsaP224.present()
+ }
+
/// Query for the number of images that have been configured into this
/// MCUboot build.
pub fn get_num_images() -> usize {