This fix includes throwing the correct exception when an offset for the key length check would cause an integer overflow therefore throwing the wrong exception.
--------- - [X] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Fix test @bug annotation - 8386473: DESKeySpec and DESedeKeySpec may throw InvalidKeyException instead of ArrayIndexOutOfBoundsException for Integer.MIN_VALUE offset Changes: https://git.openjdk.org/jdk/pull/31494/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31494&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8386473 Stats: 58 lines in 3 files changed: 40 ins; 16 del; 2 mod Patch: https://git.openjdk.org/jdk/pull/31494.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31494/head:pull/31494 PR: https://git.openjdk.org/jdk/pull/31494
