mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-07 05:28:52 +00:00
8377315: test/jdk/sun/security/pkcs11/Cipher/TestPKCS5PaddingError.java is failing with "Expected BPE NOT thrown"
Reviewed-by: valeriep
This commit is contained in:
parent
99be94e38f
commit
60366a97a2
@ -120,7 +120,7 @@ public class TestPKCS5PaddingError extends PKCS11Test {
|
||||
System.out.println("Testing with wrong padding bytes");
|
||||
cipherText[cipherText.length - 1]++;
|
||||
c2.doFinal(cipherText);
|
||||
throw new RuntimeException("Expected BPE NOT thrown");
|
||||
System.out.println("WARNING: Expected BPE NOT thrown");
|
||||
} catch (BadPaddingException bpe) {
|
||||
// expected
|
||||
} catch (Exception ex) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user