RFR: 8296442: EncryptedPrivateKeyInfo can be created with an uninitialized AlgorithmParameters [v4]

Sean Mullan mullan at openjdk.org
Wed Nov 16 14:26:02 UTC 2022


On Tue, 15 Nov 2022 21:51:28 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> src/java.base/share/classes/sun/security/pkcs12/MacData.java line 119:
>> 
>>> 117:     }
>>> 118: 
>>> 119:     MacData(AlgorithmParameters algParams, byte[] digest,
>> 
>> Is this related to this issue in some way or just a ctor that is not used?
>
> The constructor is not used anywhere, and it has an `AlgorithmParameters ` argument that could also be uninitialized.

Good to see it removed then.

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

PR: https://git.openjdk.org/jdk/pull/11067



More information about the security-dev mailing list