File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ impl<'a> GcmParams<'a> {
68
68
ulIvBits : iv_bit_len. try_into ( ) . unwrap_or_default ( ) ,
69
69
pAAD : aad. as_ptr ( ) as * mut _ ,
70
70
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
+ } ,
74
74
ulTagBits : tag_bits. into ( ) ,
75
75
} ,
76
76
_marker : PhantomData ,
Original file line number Diff line number Diff line change @@ -1275,9 +1275,7 @@ fn gcm_param_graceful_failure() -> TestResult {
1275
1275
// Verify that the ulIvBits doesn't cause failover
1276
1276
// setting this as a [u8] array causes stack overflow before operation has even begun
1277
1277
let mut iv = vec ! [ 0 ; 4294967295 ] ;
1278
-
1279
1278
let aad = [ 0 ; 16 ] ;
1280
-
1281
1279
GcmParams :: new ( & mut iv, & aad, 96 . into ( ) ) ?;
1282
1280
1283
1281
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments