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> {
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 ,
Original file line number Diff line number Diff 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 ( ( ) )
You can’t perform that action at this time.
0 commit comments