Looking at RFC 9879 on PBES2 and PBMAC1 in PKCS12, algorithm identifiers for HmacSHA*** (like SHA***) should always contain NULL as params. We can update the list at AlgorithmId.encode(DOS) to enforce this rule.
------------- Commit messages: - 8367008: Algorithm identifiers for HmacSHA* should always have NULL as params - 8367008: Algorithm identifiers for HmacSHA* should always have NULL as params Changes: https://git.openjdk.org/jdk/pull/27700/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27700&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8367008 Stats: 103 lines in 2 files changed: 43 ins; 27 del; 33 mod Patch: https://git.openjdk.org/jdk/pull/27700.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/27700/head:pull/27700 PR: https://git.openjdk.org/jdk/pull/27700
