bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/23899] BouncyCastle crypto library errors


From: csm at gnu dot org
Subject: [Bug classpath/23899] BouncyCastle crypto library errors
Date: 19 Apr 2006 03:04:54 -0000


------- Comment #10 from csm at gnu dot org  2006-04-19 03:04 -------
I think it is wrong (and probably inefficient) to use nextInt instead of
nextBytes in the BigInteger constructor.

Yes, it is wrong for `SecureRandom.next' call `engineNextBytes' on the SPI
class, instead of `nextBytes.' This is, in fact, required, because `nextBytes'
knows to seed the instance if it has not already been seeded.


-- 

csm at gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23899





reply via email to

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