Re: RFR 8213400: Support choosing curve name in keytool keypair generation

2018-11-11 Thread Weijun Wang
Webrev updated at https://cr.openjdk.java.net/~weijun/8213400/webrev.01/ Please review again. I've removed the change to CurveDB and NamedCurve. The test now simply looks at key.getParams().toString(). This is implementation dependent but it works within OpenJDK. No change on other files.

RFR 8210476: sun/security/mscapi/PrngSlow.java fails with Still too slow

2018-11-11 Thread Weijun Wang
Please take a review at https://cr.openjdk.java.net/~weijun/8210476/webrev.00/ Before this fix, every PRNG::nextBytes calls all of CryptAcquireContext, CryptGenRandom, and CryptReleaseContext. Now, CryptAcquireContext is called once in PRNG::new, and CryptReleaseContext is called by a Cleane