Author: nextgens
Date: 2006-09-24 11:51:44 +0000 (Sun, 24 Sep 2006)
New Revision: 10508
Modified:
trunk/freenet/src/freenet/config/FreenetFilePersistentConfig.java
trunk/freenet/src/freenet/crypt/DSAGroup.java
Log:
indent
Modified: trunk/freenet/src/freenet/config/FreenetFilePersistentConfig.java
===================================================================
--- trunk/freenet/src/freenet/config/FreenetFilePersistentConfig.java
2006-09-24 11:08:34 UTC (rev 10507)
+++ trunk/freenet/src/freenet/config/FreenetFilePersistentConfig.java
2006-09-24 11:51:44 UTC (rev 10508)
@@ -14,12 +14,12 @@
public void run() {
while(!hasNodeStarted){
synchronized (this) {
- hasNodeStarted = true;
- try{
- wait(100);
- } catch (InterruptedException
e) {
- hasNodeStarted = false;
- }
+ hasNodeStarted = true;
+ try{
+ wait(100);
+ } catch (InterruptedException e) {
+ hasNodeStarted = false;
+ }
}
}
Modified: trunk/freenet/src/freenet/crypt/DSAGroup.java
===================================================================
--- trunk/freenet/src/freenet/crypt/DSAGroup.java 2006-09-24 11:08:34 UTC
(rev 10507)
+++ trunk/freenet/src/freenet/crypt/DSAGroup.java 2006-09-24 11:51:44 UTC
(rev 10508)
@@ -270,6 +270,7 @@
g = grp.getG();
BigInteger pmin1 = p.subtract(BigInteger.ONE);
// TODO: that's FIPS-186-1, we should consider implementing 3 insteed!
+ //
http://csrc.nist.gov/publications/drafts/fips_186-3/Draft-FIPS-186-3%20_March2006.pdf
boolean rv = !((p.bitLength() > 1024) || (p.bitLength() < 512))
&& ((p.bitLength() % 64) == 0) && (q.bitLength() ==
DSAGroup.Q_BIT_LENGTH)
&& (q.compareTo(p) == -1) && isPrime(p, 80) && isPrime(q, 80)