On Fri, 19 Sep 2025 18:27:25 GMT, Sean Mullan <[email protected]> wrote:

>> Mark Powers has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   comment from Sean
>
> src/java.base/share/classes/sun/security/pkcs12/MacData.java line 117:
> 
>> 115: 
>> 116:         // Get the old salt.
>> 117:         extraSalt = macData[1].getOctetString();
> 
> Do we need the `extraSalt` and `extraIterations` variables? What if you just 
> put an `else` block here (if not PBMAC1) and then fill in the `macSalt` and 
> `iterations`.

Weijun has a similar concern. I've remove `extraSalt` and 
`extraIterationCount`. I no longer think it's worth the complexity to keep 
these.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24429#discussion_r2366359699

Reply via email to