|
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
|
@@ -458,7 +458,7 @@ private static void testWithOpensslCommands(String opensslPath)
|
458 | 458 | "pkcs12", "-in", "ksnormal", "-passin", "pass:changeit",
|
459 | 459 | "-info", "-nokeys", "-nocerts");
|
460 | 460 | output1.shouldHaveExitValue(0)
|
461 |
| - .shouldContain("MAC:").shouldContain("sha256").shouldContain("Iteration 10000") |
| 461 | + .shouldMatch("MAC:.*sha256.*Iteration 10000") |
462 | 462 | .shouldContain("Shrouded Keybag: PBES2, PBKDF2, AES-256-CBC,"
|
463 | 463 | + " Iteration 10000, PRF hmacWithSHA256")
|
464 | 464 | .shouldContain("PKCS7 Encrypted data: PBES2, PBKDF2, AES-256-CBC,"
|
@@ -501,7 +501,7 @@ private static void testWithOpensslCommands(String opensslPath)
|
501 | 501 | "ksnewic", "-passin", "pass:changeit", "-info", "-nokeys",
|
502 | 502 | "-nocerts");
|
503 | 503 | output1.shouldHaveExitValue(0)
|
504 |
| - .shouldContain("MAC:").shouldContain("sha256").shouldContain("Iteration 5555") |
| 504 | + .shouldMatch("MAC:.*sha256.*Iteration 5555") |
505 | 505 | .shouldContain("Shrouded Keybag: PBES2, PBKDF2, AES-256-CBC,"
|
506 | 506 | + " Iteration 7777, PRF hmacWithSHA256")
|
507 | 507 | .shouldContain("Shrouded Keybag: pbeWithSHA1And128BitRC4,"
|
|
0 commit comments