File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1273,10 +1273,9 @@ fn sha256_digest() -> TestResult {
12731273fn 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[ ..] ) ;
You can’t perform that action at this time.
0 commit comments