Skip to content

Commit b3815d2

Browse files
committed
tests: Skip RSA PKCS#1 wrapping/unwrapping with FIPS tokens
Signed-off-by: Jakub Jelen <[email protected]>
1 parent 601b20b commit b3815d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cryptoki/tests/basic.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,11 @@ fn wrap_and_unwrap_key() {
10001000
// open a session
10011001
let session = pkcs11.open_rw_session(slot).unwrap();
10021002

1003+
if is_fips(&session) {
1004+
eprintln!("The RSA PKCS#1 encryption is not allowed in FIPS Mode");
1005+
return;
1006+
}
1007+
10031008
// log in the session
10041009
session
10051010
.login(UserType::User, Some(&AuthPin::new(USER_PIN.into())))

0 commit comments

Comments
 (0)