[8u] RFR 8220165: Encryption using GCM results in RuntimeException: input length out of bound

Severin Gehwolf sgehwolf at redhat.com
Thu Jul 30 15:32:39 UTC 2020


On Thu, 2020-07-30 at 12:36 +0200, Aleksey Shipilev wrote:
> 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)

Looks good.

Thanks,
Severin



More information about the jdk8u-dev mailing list