RFR: 8296910: Add EdDSA/XDH/RSASSA-PSS to KeyPairGeneratorBench.java

Weijun Wang weijun at openjdk.org
Wed Nov 16 21:31:05 UTC 2022


On Wed, 16 Nov 2022 20:55:45 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

> > The generation might depend on secure randoms a lot. How about create a simple `SecureRandom` that is fast and does not depend on any external entropy source?
> 
> The secure random generation is part of the key generation. It may be not the purpose to benchmark algorithms without secure randoms. It may be helpful to see the math part of algorithms except random number. What do you think to have the improvement in a different benchmark later?

I was wondering if secure random generation could be sometimes fast and sometimes slow. I'm also not sure about how NativePRNG behaves in a multi-thread environment.

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

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


More information about the security-dev mailing list