Update of /cvsroot/freenet/freenet/src/freenet/session
In directory sc8-pr-cvs1:/tmp/cvs-serv9444/src/freenet/session
Modified Files:
FnpLinkManager.java FnpLink.java
Log Message:
some completely trivial code housekeeping
Index: FnpLinkManager.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/session/FnpLinkManager.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -w -r1.20 -r1.21
--- FnpLinkManager.java 30 Oct 2003 01:34:05 -0000 1.20
+++ FnpLinkManager.java 30 Oct 2003 15:27:38 -0000 1.21
@@ -176,7 +176,7 @@
removeLink(oldLt);
}
- BigInteger linkIdentifier=Util.byteArrayToMPI(hk);
+ BigInteger linkIdentifier=new BigInteger(hk);
LinkToken lt=new FnpLinkToken(remotePK, me, k, linkIdentifier);
//Core.logger.log(this, "Adding link identified by "
Index: FnpLink.java
===================================================================
RCS file: /cvsroot/freenet/freenet/src/freenet/session/FnpLink.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -w -r1.34 -r1.35
--- FnpLink.java 27 Oct 2003 14:45:19 -0000 1.34
+++ FnpLink.java 30 Oct 2003 15:27:38 -0000 1.35
@@ -508,7 +508,7 @@
byte[] Cbbytes = Util.MPIbytes(Cb);
ctx.update(Cabytes, 0, Cabytes.length);
ctx.update(Cbbytes, 0, Cbbytes.length);
- BigInteger M = Util.byteArrayToMPI(ctx.digest());
+ BigInteger M = new BigInteger(ctx.digest());
DSASignature sigCaCb = DSA.sign(pubMe.getGroup(), privMe,
M, Core.getRandSource());
@@ -523,7 +523,7 @@
ctx.update(Yabytes, 0, Yabytes.length);
ctx.update(Cabytes, 0, Cabytes.length);
ctx.update(Cbbytes, 0, Cbbytes.length);
- M = Util.byteArrayToMPI(ctx.digest());
+ M = new BigInteger(ctx.digest());
DSASignature sigYaCaCb = DSASignature.read(in);
if (!DSA.verify(Ya, sigYaCaCb, M)) {
String err = "Remote does not posess the private key to the public key it"+
@@ -661,7 +661,7 @@
ctx.update(Yabytes, 0, Yabytes.length);
ctx.update(Cabytes, 0, Cabytes.length);
ctx.update(Cbbytes, 0, Cbbytes.length);
- M = Util.byteArrayToMPI(ctx.digest());
+ M = new BigInteger(ctx.digest());
DSASignature sigYaCaCb = DSA.sign(pubMe.getGroup(), privMe, M,
Core.getRandSource());
@@ -695,7 +695,7 @@
ctx.update(Cabytes, 0, Cabytes.length);
ctx.update(Cbbytes, 0, Cbbytes.length);
- M = Util.byteArrayToMPI(ctx.digest());
+ M = new BigInteger(ctx.digest());
if (!DSA.verify(bob, sigCaCb, M)) {
String err = "Remote is not who she claims to be, or did not "+
"receive the correct DH parameters";
_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs