Author: j16sdiz
Date: 2009-01-05 15:17:25 +0000 (Mon, 05 Jan 2009)
New Revision: 24919
Modified:
trunk/freenet/src/freenet/store/RAMFreenetStore.java
trunk/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
Log:
comments
Modified: trunk/freenet/src/freenet/store/RAMFreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/RAMFreenetStore.java 2009-01-05
13:07:32 UTC (rev 24918)
+++ trunk/freenet/src/freenet/store/RAMFreenetStore.java 2009-01-05
15:17:25 UTC (rev 24919)
@@ -9,6 +9,11 @@
import freenet.support.ByteArrayWrapper;
import freenet.support.LRUHashtable;
+/**
+ * LRU in memory store.
+ *
+ * For debugging / simulation only
+ */
public class RAMFreenetStore implements FreenetStore {
private final static class Block {
Modified: trunk/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
2009-01-05 13:07:32 UTC (rev 24918)
+++ trunk/freenet/src/freenet/store/saltedhash/SaltedHashFreenetStore.java
2009-01-05 15:17:25 UTC (rev 24919)
@@ -47,8 +47,13 @@
import freenet.support.io.NativeThread;
/**
- * Index-less data store based on salted hash
+ * Index-less data store based on salted hash.
*
+ * Provide a pseudo-random replacement based on a salt value generated on
create. Keys are check
+ * against a bloom filter before probing. Data are encrypted using the route
key and the salt, so
+ * there is no way to recover the data without holding the route key. (For
debugging, you can set
+ * OPTION_SAVE_PLAINKEY=true in source code)
+ *
* @author sdiz
*/
public class SaltedHashFreenetStore implements FreenetStore {
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs