commit-classpath
[Top][All Lists]
Advanced

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

[Bug #835] Incorrect implementation of SHA1PRNG.java


From: nobody
Subject: [Bug #835] Incorrect implementation of SHA1PRNG.java
Date: Tue, 23 Jul 2002 12:05:49 -0400

=================== BUG #835: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=835&group_id=85

Changes by: Anonymous user        Date: 2002-Jul-23 12:05

------------------ Additional Bug Attachment  ----------------------------
File name: test.tar.gz                    Size:3 KB
If you try to run serial.class on Sun/IBM JDK and then on any JVM that uses 
classpath, the sequences of random numbers that Cipher outputs will be 
completely different
http://savannah.gnu.org/bugs/download.php?group_id=85&bug_id=835&bug_file_id=56



=================== BUG #835: FULL BUG SNAPSHOT ===================


Submitted by: None                      Project: classpath                      
Submitted on: 2002-Jul-09 20:23
Severity:  5 - Major                    Resolution:  None                       
Assigned to:  None                      Status:  Open                           
Platform Version:  None                 

Summary:  Incorrect implementation of SHA1PRNG.java

Original Submission:  SHA1PRNG.java is implemented incorrectly and produces 
completely wrong sequence of pseudo-random numbers.

Follow-up Comments
*******************

-------------------------------------------------------
Date: 2002-Jul-23 11:03             By: None
It's been a couple of weeks already, so I may not remember all the details.

There are two issues.  The first one is that if you try to generate <=20 random 
numbers, given the same seed, classpath implementation gives completely 
different sequence of numbers from that of Sun's code (maybe it generates the 
same output disregarding seed value - I do not remember).  The second issue is 
that if you try to generate >20 random numbers, classpath starts repeating 
previously generated 20 values instead of generating new ones.

I will try to find my tests and submit them later.

-------------------------------------------------------
Date: 2002-Jul-22 19:15             By: mark
Could you provide more information? What were you expecting? Do you have some 
sample code or a test case?


File Attachments
****************

-------------------------------------------------------
Date: 2002-Jul-23 12:05  Name: test.tar.gz  Size: 3KB   By: None
If you try to run serial.class on Sun/IBM JDK and then on any JVM that uses 
classpath, the sequences of random numbers that Cipher outputs will be 
completely different
http://savannah.gnu.org/bugs/download.php?group_id=85&bug_id=835&bug_file_id=56


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=835&group_id=85



reply via email to

[Prev in Thread] Current Thread [Next in Thread]