Skip to content

Commit bd41a6b

Browse files
committed
Minor edits to basic.rs
Signed-off-by: Jason Parker <[email protected]>
1 parent a123bd9 commit bd41a6b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cryptoki/tests/basic.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1273,10 +1273,9 @@ fn sha256_digest() -> TestResult {
12731273
fn gcm_param_graceful_failure() -> TestResult {
12741274
// Try to generate GcmParams with max size IV (2^32-1)
12751275
// Verify that the ulIvBits doesn't cause failover
1276-
println!("start");
12771276
// setting this as a [u8] array causes stack overflow before operation has even begun
12781277
let mut iv = vec![0; 4294967295];
1279-
println!("iv");
1278+
12801279
let aad = [0; 16];
12811280

12821281
GcmParams::new(&mut iv, &aad, 96.into())?;
@@ -1342,7 +1341,7 @@ fn aes_gcm_with_aad() -> TestResult {
13421341
Attribute::Encrypt(true),
13431342
];
13441343
let key_handle = session.create_object(&template)?;
1345-
let gcm_params = match GcmParams::new(&mut iv, &aad, 96.into())?;
1344+
let gcm_params = GcmParams::new(&mut iv, &aad, 96.into())?;
13461345
let mechanism = Mechanism::AesGcm(gcm_params);
13471346
let cipher_and_tag = session.encrypt(&mechanism, key_handle, &plain)?;
13481347
assert_eq!(expected_cipher_and_tag[..], cipher_and_tag[..]);

0 commit comments

Comments
 (0)