Skip to content

Commit 3bd83ab

Browse files
committed
tests: Use more complex pins to make Kryoptic FIPS module happy
Signed-off-by: Jakub Jelen <[email protected]>
1 parent bf4a976 commit 3bd83ab

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cryptoki/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ let slot = pkcs11.get_slots_with_token()?[0];
5555
let so_pin = AuthPin::new("abcdef".into());
5656
pkcs11.init_token(slot, &so_pin, "Test Token")?;
5757

58-
let user_pin = AuthPin::new("fedcba".into());
58+
let user_pin = AuthPin::new("fedcba123456".into());
5959

6060
// initialize user PIN
6161
{

cryptoki/src/session/object_management.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ impl Session {
410410
/// let slot = pkcs11.get_slots_with_token().unwrap().remove(0);
411411
///
412412
/// let session = pkcs11.open_ro_session(slot).unwrap();
413-
/// session.login(UserType::User, Some(&AuthPin::new("fedcba".into())));
413+
/// session.login(UserType::User, Some(&AuthPin::new("fedcba123456".into())));
414414
///
415415
/// let empty_attrib= vec![];
416416
/// if let Some(object) = session.find_objects(&empty_attrib).unwrap().first() {

cryptoki/tests/common/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ use cryptoki::types::AuthPin;
77
use std::env;
88

99
// The default user pin
10-
pub static USER_PIN: &str = "fedcba";
10+
pub static USER_PIN: &str = "fedcba123456";
1111
// The default SO pin
12-
pub static SO_PIN: &str = "abcdef";
12+
pub static SO_PIN: &str = "abcdef654321";
1313

1414
fn get_pkcs11_path() -> String {
1515
env::var("TEST_PKCS11_MODULE")

0 commit comments

Comments
 (0)