Skip to content

Commit bf1e682

Browse files
committed
More cargo format fixes
Signed-off-by: Jason Parker <[email protected]>
1 parent 0bb0353 commit bf1e682

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cryptoki/src/mechanism/aead.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ impl<'a> GcmParams<'a> {
6868
ulIvBits: iv_bit_len.try_into().unwrap_or_default(),
6969
pAAD: aad.as_ptr() as *mut _,
7070
ulAADLen: match aad.len().try_into() {
71-
Ok(len) => len,
72-
Err(_e) => return Err("aad length does not fit in CK_ULONG"),
73-
},
71+
Ok(len) => len,
72+
Err(_e) => return Err("aad length does not fit in CK_ULONG"),
73+
},
7474
ulTagBits: tag_bits.into(),
7575
},
7676
_marker: PhantomData,

cryptoki/tests/basic.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,9 +1275,7 @@ fn gcm_param_graceful_failure() -> TestResult {
12751275
// Verify that the ulIvBits doesn't cause failover
12761276
// setting this as a [u8] array causes stack overflow before operation has even begun
12771277
let mut iv = vec![0; 4294967295];
1278-
12791278
let aad = [0; 16];
1280-
12811279
GcmParams::new(&mut iv, &aad, 96.into())?;
12821280

12831281
Ok(())

0 commit comments

Comments
 (0)