Skip to content

Commit 401932a

Browse files
committed
added default initialisation.
1 parent e3c6cd4 commit 401932a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prov/src/main/jdk1.4/org/bouncycastle/jcajce/provider/asymmetric/ec/KeyPairGeneratorSpi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public KeyPair generateKeyPair()
178178
{
179179
if (!initialised)
180180
{
181-
throw new IllegalStateException("EC Key Pair Generator not initialised");
181+
initialize(strength, new SecureRandom());
182182
}
183183

184184
AsymmetricCipherKeyPair pair = engine.generateKeyPair();

0 commit comments

Comments
 (0)