[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-jce] SeedGenerator thread generated an exception.



Hi,

Does anyone know a solution to this problem I have.

This is the code I'm executing:

      generator = KeyPairGenerator.getInstance("RSA", "IAIK");
      generator.initialize(512);
      KeyPair kp = generator.generateKeyPair();


This fails when it comes to the last line "generator.generateKeyPair();" and throws a java.lang.InternalError , see printout below.

Any ideas?


Regards,
Brian Preston

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

adding Provider IAIK...

Java version number: 1.3.0
Java compiler: null
Java vendor-specific string: Sun Microsystems Inc.
Java vendor URL: http://java.sun.com/
Java installation directory: d:\jdk1.3\jre
Java class format version number: 47.0
Java class path: d:\tomcat\classes;d:\tomcat\lib\ant.jar; ... 
Operating system name: Windows NT
Operating system architecture: x86
Operating system version: 4.0

Installed security providers providers:

Provider 1: IAIK  version: 2.61
Provider 2: SUN  version: 1.2
Provider 3: SunRsaSign  version: 1.0
java.lang.InternalError: internal error: SeedGenerator thread generated an exception.
        at sun.security.provider.SeedGenerator._getByte(SeedGenerator.java:178)
        at sun.security.provider.SeedGenerator.getByte(SeedGenerator.java:164)
        at sun.security.provider.SecureRandom.engineGenerateSeed(SecureRandom.java:117)
        at java.security.SecureRandom.generateSeed(SecureRandom.java:389)
        at java.security.SecureRandom.getSeed(SecureRandom.java:376)
        at iaik.security.random.JDKSeedGenerator.getSeed(Unknown Source)
        at iaik.security.random.SeedGenerator.getDefault(Unknown Source)
        at iaik.security.random.SecRandom.setSeed(Unknown Source)
        at iaik.security.random.SecRandom.nextBytes(Unknown Source)
        at java.math.BigInteger.randomBits(BigInteger.java:365)
        at java.math.BigInteger.<init>(BigInteger.java:354)
        at iaik.utils.NumberTheory.getStrongPrime(Unknown Source)
        at iaik.security.rsa.RSAKeyPairGenerator.generateKeyPair(Unknown Source)
        at java.lang.Thread.run(Thread.java:484)
--
Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content: UNSUBSCRIBE iaik-jce