[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/27911] New: java.security.VMSecureRandom.generateSeed() f
From: |
morgon at surgo dot net |
Subject: |
[Bug classpath/27911] New: java.security.VMSecureRandom.generateSeed() fails when calling java.security.VMSecureRandom.Spinner.stop() |
Date: |
6 Jun 2006 08:17:45 -0000 |
The following code (compiled with gcj 4.1.0 with --bootclasspath pointing to
classpath's glibj.zip and run with jamvm 1.4.3, classpath pointing to the same
zip file) will throw an IllegalArgumentException from
java.security.VMSecureRandom.generateSeed() at line 107:
--------------------------------------------------------
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
public class test {
public static void main(String[] arguments) throws Exception {
KeyGenerator k = KeyGenerator.getInstance("DES");
k.init(64);
SecretKey key = k.generateKey();
}
}
--------------------------------------------------------
The problem seems to be that the random-number generation methods all lead to
VMSecureRandom.generateSeed() which, at line 107, calls the stop() method for
its array of spinners. I tried making the stop() method public but the
exception was still thrown, oddly enough.
I'm using the latest CVS of Classpath.
--
Summary: java.security.VMSecureRandom.generateSeed() fails when
calling java.security.VMSecureRandom.Spinner.stop()
Product: classpath
Version: 0.92
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: morgon at surgo dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27911
- [Bug classpath/27911] New: java.security.VMSecureRandom.generateSeed() fails when calling java.security.VMSecureRandom.Spinner.stop(),
morgon at surgo dot net <=