harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r1148459 - /harmony/enhanced/java/trunk/classlib/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/SHA1PRNG_SecureRandomImpl.java
Date Tue, 19 Jul 2011 17:38:17 GMT
Author: hindessm
Date: Tue Jul 19 17:38:16 2011
New Revision: 1148459

URL: http://svn.apache.org/viewvc?rev=1148459&view=rev
Log:
Apply patch from HARMONY-6685 "SHA1PRNG produces less optimal"

Modified:
    harmony/enhanced/java/trunk/classlib/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/SHA1PRNG_SecureRandomImpl.java

Modified: harmony/enhanced/java/trunk/classlib/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/SHA1PRNG_SecureRandomImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/SHA1PRNG_SecureRandomImpl.java?rev=1148459&r1=1148458&r2=1148459&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/SHA1PRNG_SecureRandomImpl.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/security/src/main/java/common/org/apache/harmony/security/provider/crypto/SHA1PRNG_SecureRandomImpl.java
Tue Jul 19 17:38:16 2011
@@ -317,7 +317,7 @@ public class SHA1PRNG_SecureRandomImpl e
                 seed[i] = 0;
             }
 
-            bits = seedLength << 3 + 64; // transforming # of bytes into # of bits
+            bits = (seedLength << 3) + 64; // transforming # of bytes into # of bits
 
             // putting # of bits into two last words (14,15) of 16 word frame in 
             // seed or copies array depending on total length after padding



Mime
View raw message