File tree 1 file changed +2
-3
lines changed
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 {
1273
1273
fn gcm_param_graceful_failure ( ) -> TestResult {
1274
1274
// Try to generate GcmParams with max size IV (2^32-1)
1275
1275
// Verify that the ulIvBits doesn't cause failover
1276
- println ! ( "start" ) ;
1277
1276
// setting this as a [u8] array causes stack overflow before operation has even begun
1278
1277
let mut iv = vec ! [ 0 ; 4294967295 ] ;
1279
- println ! ( "iv" ) ;
1278
+
1280
1279
let aad = [ 0 ; 16 ] ;
1281
1280
1282
1281
GcmParams :: new ( & mut iv, & aad, 96 . into ( ) ) ?;
@@ -1342,7 +1341,7 @@ fn aes_gcm_with_aad() -> TestResult {
1342
1341
Attribute :: Encrypt ( true ) ,
1343
1342
] ;
1344
1343
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 ( ) ) ?;
1346
1345
let mechanism = Mechanism :: AesGcm ( gcm_params) ;
1347
1346
let cipher_and_tag = session. encrypt ( & mechanism, key_handle, & plain) ?;
1348
1347
assert_eq ! ( expected_cipher_and_tag[ ..] , cipher_and_tag[ ..] ) ;
You can’t perform that action at this time.
0 commit comments