|
From: <pe...@us...> - 2004-01-19 23:49:32
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto
In directory sc8-pr-cvs1:/tmp/cvs-serv9201/src/java/org/neuclear/commons/crypto
Modified Files:
Base32.java
Log Message:
Unit testing uncovered further issues with Base32
NSTools is now uptodate as are many other classes. All transactional builders habe been updated.
Well on the way towards full "green" on Junit.
Index: Base32.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/Base32.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Base32.java 19 Jan 2004 17:53:13 -0000 1.3
--- Base32.java 19 Jan 2004 23:49:29 -0000 1.4
***************
*** 22,25 ****
--- 22,30 ----
$Id$
$Log$
+ Revision 1.4 2004/01/19 23:49:29 pelle
+ Unit testing uncovered further issues with Base32
+ NSTools is now uptodate as are many other classes. All transactional builders habe been updated.
+ Well on the way towards full "green" on Junit.
+
Revision 1.3 2004/01/19 17:53:13 pelle
Various clean ups
***************
*** 181,185 ****
for (int j=0;j<ecsize;j++){
encoded[ei+ecsize-1-j]=encodeVal((byte) (chs&31));
! chs>>=5;
}
}
--- 186,190 ----
for (int j=0;j<ecsize;j++){
encoded[ei+ecsize-1-j]=encodeVal((byte) (chs&31));
! chs>>>=5;
}
}
***************
*** 187,191 ****
}
private static byte getPart(long chunk,int num){
! return (byte) ((chunk>>((7-num)*5))&31);
}
/**
--- 192,196 ----
}
private static byte getPart(long chunk,int num){
! return (byte) ((chunk>>>((7-num)*5))&31);
}
/**
|