[8u] RFR 8220165: Encryption using GCM results in RuntimeException: input length out of bound
Aleksey Shipilev
shade at redhat.com
Thu Jul 30 10:36:52 UTC 2020
Original bug:
https://bugs.openjdk.java.net/browse/JDK-8220165
https://hg.openjdk.java.net/jdk/jdk/rev/4ff6c8365b69
This is a follow-up for JDK-8201633 backport. The changeset applies cleanly, but it puts the test in
the wrong location, so it does not run. Moved the test by hand, and also had to fix the compilation
bug that is 8u-specific:
// Hash of encrypted results of AES/GCM for particular lengths.
// <data size, hash>
- static final HashMap<Integer, String> results = new HashMap<>() {{
+ static final HashMap<Integer, String> results = new HashMap<Integer, String>() {{
8u webrev:
https://cr.openjdk.java.net/~shade/8220165/webrev.8u.01/
Testing: jdk_security; new test (fails before the patch, passes with it)
--
Thanks,
-Aleksey
More information about the jdk8u-dev
mailing list