[jsword-svn] r1001 - trunk/common/src/main/java/org/crosswire/common/crypt

dmsmith at crosswire.org dmsmith at crosswire.org
Mon Feb 13 19:21:20 MST 2006


Author: dmsmith
Date: 2006-02-13 19:21:15 -0700 (Mon, 13 Feb 2006)
New Revision: 1001

Modified:
   trunk/common/src/main/java/org/crosswire/common/crypt/Sapphire.java
Log:
Bugfix in Sapphire II.

Modified: trunk/common/src/main/java/org/crosswire/common/crypt/Sapphire.java
===================================================================
--- trunk/common/src/main/java/org/crosswire/common/crypt/Sapphire.java	2006-01-30 02:32:49 UTC (rev 1000)
+++ trunk/common/src/main/java/org/crosswire/common/crypt/Sapphire.java	2006-02-14 02:21:15 UTC (rev 1001)
@@ -610,6 +610,7 @@
             {
                 keypos = 0;           // Recycle the user key.
                 rsum += key.length;   // key "aaaa" != key "aaaaaaaa"
+                rsum &= 0xFF;
             }
 
             u = mask & rsum;



More information about the jsword-svn mailing list