Skip to content

Commit

Permalink
Fix p256 tests not running
Browse files Browse the repository at this point in the history
The p256 tests were not running due to a typo
  • Loading branch information
sosthene-nitrokey committed Apr 19, 2024
1 parent 83cf940 commit bfae7c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -261,7 +264,7 @@ fn sign_ed255() {
assert_eq!(Err(Error::WrongSignatureLength), reply);
}

#[cfg(feature = "p255")]
#[cfg(feature = "p256")]
#[test]
#[serial]
fn sign_p256() {
Expand Down Expand Up @@ -301,7 +304,7 @@ fn sign_p256() {
assert!(valid);
}

#[cfg(feature = "p255")]
#[cfg(feature = "p256")]
#[test]
#[serial]
fn agree_p256() {
Expand Down

0 comments on commit bfae7c1

Please sign in to comment.