On Tue, 10 May 2022 00:09:16 GMT, Weijun Wang <wei...@openjdk.org> wrote:
>> Oh, the comment about "may be 0" is meant toward the >> pbeKey.getInterationCount() call... Hmm, I will make it clearer. > > I see. Another question, shall we reset `salt` and `iCount` at the beginning? > If `params` is null and `key` is not `PBEKey` and there is an existing > positive `iCount`, it will not be set to `DEFAULT_COUNT`. Yeah, I see PKCS12PBECipherCore does that. Will update PBES2Core with it too. ------------- PR: https://git.openjdk.java.net/jdk/pull/8521