-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b24
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8207890 | 12 | Weijun Wang | P3 | Resolved | Fixed | b04 |
JDK-8207996 | 11.0.2 | Weijun Wang | P3 | Resolved | Fixed | b01 |
JDK-8208038 | 11.0.1 | Weijun Wang | P3 | Resolved | Fixed | b03 |
JDK-8268477 | openjdk8u312 | Alexey Bakhtin | P3 | Resolved | Fixed | b01 |
JDK-8264688 | 8u301 | Sean Coffey | P3 | Resolved | Fixed | b03 |
JDK-8266276 | 7u321 | Prasadarao Koppula | P3 | Resolved | Fixed | b01 |
JDK-8264693 | 7u311 | Prasadarao Koppula | P3 | Resolved | Fixed | b04 |
algParams = getPBEAlgorithmParameters(algorithm);
...
ObjectIdentifier pbeOID = mapPBEAlgorithmToOID(algorithm);
...
cipher.init(Cipher.ENCRYPT_MODE, skey, algParams);
algid = new AlgorithmId(pbeOID, cipher.getParameters());
...
EncryptedPrivateKeyInfo encrInfo =
new EncryptedPrivateKeyInfo(algid, encryptedKey);
Here, pbeOID is pkcs5PBES2, but pkcs5PBES2 is also contained in algParams, and algid is encoded with a dup inside.
0002:000B [0] OID 1.2.840.113549.1.5.13 (pkcs5PBES2)
000D:0069 [1] SEQUENCE
000F:000B [10] OID 1.2.840.113549.1.5.13 (pkcs5PBES2)
001A:005C [11] SEQUENCE
001C:003B [110] SEQUENCE
001E:000B [1100] OID 1.2.840.113549.1.5.12 (pkcs5PBKDF2)
0029:002E [1101] SEQUENCE
Also, in PBES2Parameters::parseKDF, keyLength and prf fields are required. They should be optional.
- backported by
-
JDK-8207890 PBES2 AlgorithmId encoding error in PKCS12 KeyStore
-
- Resolved
-
-
JDK-8207996 PBES2 AlgorithmId encoding error in PKCS12 KeyStore
-
- Resolved
-
-
JDK-8208038 PBES2 AlgorithmId encoding error in PKCS12 KeyStore
-
- Resolved
-
-
JDK-8264688 PBES2 AlgorithmId encoding error in PKCS12 KeyStore
-
- Resolved
-
-
JDK-8264693 PBES2 AlgorithmId encoding error in PKCS12 KeyStore
-
- Resolved
-
-
JDK-8266276 PBES2 AlgorithmId encoding error in PKCS12 KeyStore
-
- Resolved
-
-
JDK-8268477 PBES2 AlgorithmId encoding error in PKCS12 KeyStore
-
- Resolved
-
- blocks
-
JDK-8076999 SunJCE support of password-based encryption scheme 2 params (PBES2) not working
-
- Resolved
-
- relates to
-
JDK-8255680 Add more encryption schemes to SunJCE password-based encryption scheme 2 params
-
- Open
-
-
JDK-8214513 A PKCS12 keystore from Java 8 using custom PBE parameters cannot be read in Java 11
-
- Closed
-
-
JDK-8267837 JDK 7u/8u PKCS12KeyStore.parseAlgParameters exception
-
- Closed
-
-
JDK-8153005 Upgrade the default PKCS12 encryption/MAC algorithms
-
- Resolved
-