Hi folks,

When repeatedly gathering small amounts of random data the SUN provider is quicker ucrypto / pkcs11. This proposed fix from Brad allows ucrypto / pkcs11 leverage the SUN SHA1 provider for SHA1PRNG. This allows us to avoid the overhead of calling into the native level repeatedly for small amounts of random data and allows ucrypto / pkcs11 to perform as well as SUN for this particular corner case.

Testcase attached to the bug.

http://cr.openjdk.java.net/~robm/8044659/webrev.01/
https://bugs.openjdk.java.net/browse/JDK-8044659

    -Rob

Reply via email to