|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
@@ -462,7 +462,7 @@ private static void testWithOpensslCommands(String opensslPath)
|
462 | 462 | "pkcs12", "-in", "ksnormal", "-passin", "pass:changeit",
|
463 | 463 | "-info", "-nokeys", "-nocerts");
|
464 | 464 | output1.shouldHaveExitValue(0)
|
465 |
| - .shouldContain("MAC:").shouldContain("sha256").shouldContain("Iteration 10000") |
| 465 | + .shouldMatch("MAC:.*sha256.*Iteration 10000") |
466 | 466 | .shouldContain("Shrouded Keybag: PBES2, PBKDF2, AES-256-CBC,"
|
467 | 467 | + " Iteration 10000, PRF hmacWithSHA256")
|
468 | 468 | .shouldContain("PKCS7 Encrypted data: PBES2, PBKDF2, AES-256-CBC,"
|
@@ -505,7 +505,7 @@ private static void testWithOpensslCommands(String opensslPath)
|
505 | 505 | "ksnewic", "-passin", "pass:changeit", "-info", "-nokeys",
|
506 | 506 | "-nocerts");
|
507 | 507 | output1.shouldHaveExitValue(0)
|
508 |
| - .shouldContain("MAC:").shouldContain("sha256").shouldContain("Iteration 5555") |
| 508 | + .shouldMatch("MAC:.*sha256.*Iteration 5555") |
509 | 509 | .shouldContain("Shrouded Keybag: PBES2, PBKDF2, AES-256-CBC,"
|
510 | 510 | + " Iteration 7777, PRF hmacWithSHA256")
|
511 | 511 | .shouldContain("Shrouded Keybag: pbeWithSHA1And128BitRC4,"
|
|
0 commit comments