RFR: 6383195: javax.crypto.spec.PBEKeySpec is not thread safe

Bradford Wetmore wetmore at openjdk.org
Thu Jul 28 05:34:37 UTC 2022


On Thu, 28 Jul 2022 01:42:23 GMT, Weijun Wang <weijun at openjdk.org> wrote:

> BTW, how often can you observe a test failure before the code change?

Third time through the loop.


Testing: 
...
java.lang.RuntimeException: Inconsistent Password: 
	at PBEKeySpecRacing.lambda$main$0(PBEKeySpecRacing.java:61)
	at java.base/java.lang.Thread.run(Thread.java:1589)

I have one more tweak to make, will come back to this soon.

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

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



More information about the security-dev mailing list