Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH470: Synchronize access to a shared KeyPairGenerator, which may not…
… be thread-safe. The keyPairGenerator object in the MontgomeryCurve is a bouncycastle implementation of the java.security.KeyPairGenerator class. The generateKeyPair method in class org.bouncycastle.jcajce.provider.asymmetric.edec.KeyPairGeneratorSpi is not thread safe, so calling the keyPairGenerator.generateKeyPair method must be synchronized.
- Loading branch information