[jdk17] RFR: 8268621: SunJCE provider may throw unexpected NPE for un-initialized AES KW/KWP Ciphers

Valerie Peng valeriep at openjdk.java.net
Fri Jun 11 21:29:03 UTC 2021


Could someone help review this straightforward fix? The current impl for AES KW and KWP cipher should check for possible null iv value in its CipherSpi.engineGetIV() and CipherSpi.engineGetParameters() impls. Updated the regression test to cover this scenario as well as some other minor updates.

Thanks!
Valerie

-------------

Commit messages:
 - 8268621: SunJCE provider may throw unexpected NPE for un-initialized AES KW/KWP Ciphers

Changes: https://git.openjdk.java.net/jdk17/pull/34/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=34&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8268621
  Stats: 50 lines in 4 files changed: 34 ins; 3 del; 13 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/34.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/34/head:pull/34

PR: https://git.openjdk.java.net/jdk17/pull/34



More information about the security-dev mailing list