> Change SunJSSE to use `TlsUpdateNplus1` instead of `AES` as the key algorithm > when deriving the next application traffic secret. > > SunPKCS11 provider checks the key length when creating an `AES` key, and > since 384 bits is not a valid AES key length, the key creation fails. > > `TlsUpdateNplus1` is [already > recognized](https://github.com/openjdk/jdk/blob/3c9fd7688f4d73067db9b128c329ca7603a60578/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11SecretKeyFactory.java#L287) > as a standard TLS generic key by SunPKCS11. > > Key update is now exercised by the FipsModeTLS test. The test passes with the > changes, fails without them. Other tier1-3 tests continue to pass.
Daniel Jeliński has updated the pull request incrementally with two additional commits since the last revision: - Remove isIv - Replace if/else with ternary ------------- Changes: - all: https://git.openjdk.org/jdk/pull/27498/files - new: https://git.openjdk.org/jdk/pull/27498/files/53e0d97d..aae20d41 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=27498&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27498&range=00-01 Stats: 16 lines in 1 file changed: 2 ins; 6 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/27498.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27498/head:pull/27498 PR: https://git.openjdk.org/jdk/pull/27498
