From b77dbd4d5f88e7962bdec8f1f9377f667ab231bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Fri, 19 Apr 2024 10:25:05 +0200 Subject: [PATCH] Fix p256 tests not running The p256 tests were not running due to a typo --- src/tests.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tests.rs b/src/tests.rs index 69e4ea610ea..7cd932df3f9 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -10,6 +10,9 @@ use littlefs2::fs::{Allocation, Filesystem}; use littlefs2::io::Result as LfsResult; use rand_core::{CryptoRng, RngCore}; +#[cfg(feature = "p256")] +use crate::types::{Mechanism, SignatureSerialization, StorageAttributes}; + use crate::client::{CryptoClient as _, FilesystemClient as _}; use crate::types::{consent, reboot, ui, Bytes, Location, PathBuf}; use crate::{api, block, platform, store, Error}; @@ -261,7 +264,7 @@ fn sign_ed255() { assert_eq!(Err(Error::WrongSignatureLength), reply); } -#[cfg(feature = "p255")] +#[cfg(feature = "p256")] #[test] #[serial] fn sign_p256() { @@ -301,7 +304,7 @@ fn sign_p256() { assert!(valid); } -#[cfg(feature = "p255")] +#[cfg(feature = "p256")] #[test] #[serial] fn agree_p256() {