-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b81
-
b123
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8163718 | 8u121 | Artem Kosarev | P3 | Resolved | Fixed | b01 |
JDK-8160661 | 8u112 | Artem Kosarev | P3 | Resolved | Fixed | b03 |
JDK-8167845 | emb-8u121 | Gary Adams | P3 | Resolved | Fixed | b01 |
JDK-8200036 | openjdk7u | Unassigned | P3 | Resolved | Fixed | master |
In this file:
http://hg.openjdk.java.net/jdk9/dev/jdk/file/0b2d0cf231c7/test/com/sun/crypto/provider/Cipher/TestCipher.java
Decryption is performed into INPUT_TEXT (lines 194-197).
// Recover text from cipher and save to same buffer
ci.update(INPUT_TEXT, STORAGE_OFFSET, TEXT_LEN + PAD_LEN, INPUT_TEXT,
ENC_OFFSET);
ci.doFinal(INPUT_TEXT, ENC_OFFSET);
But check that decryption went well is performed on another buffer - recoveredText (lines 199 -206):
if (!equalsBlock(
plainText, ENC_OFFSET, recoveredText, 0,
recoveredText.length)) {
throw new RuntimeException(
"Recovered text not same as plain text with same buffer");
} else {
out.println("Recovered and plain text are same with same buffer");
}
http://hg.openjdk.java.net/jdk9/dev/jdk/file/0b2d0cf231c7/test/com/sun/crypto/provider/Cipher/TestCipher.java
Decryption is performed into INPUT_TEXT (lines 194-197).
// Recover text from cipher and save to same buffer
ci.update(INPUT_TEXT, STORAGE_OFFSET, TEXT_LEN + PAD_LEN, INPUT_TEXT,
ENC_OFFSET);
ci.doFinal(INPUT_TEXT, ENC_OFFSET);
But check that decryption went well is performed on another buffer - recoveredText (lines 199 -206):
if (!equalsBlock(
plainText, ENC_OFFSET, recoveredText, 0,
recoveredText.length)) {
throw new RuntimeException(
"Recovered text not same as plain text with same buffer");
} else {
out.println("Recovered and plain text are same with same buffer");
}
- backported by
-
JDK-8160661 TestCipher.java doesn't check one of the decrypted message as expected
- Resolved
-
JDK-8163718 TestCipher.java doesn't check one of the decrypted message as expected
- Resolved
-
JDK-8167845 TestCipher.java doesn't check one of the decrypted message as expected
- Resolved
-
JDK-8200036 TestCipher.java doesn't check one of the decrypted message as expected
- Resolved
- relates to
-
JDK-8048601 Tests for JCE crypto ciphers (part 1)
- Resolved