Author: toad
Date: 2006-11-29 15:08:53 +0000 (Wed, 29 Nov 2006)
New Revision: 11108
Modified:
trunk/freenet/src/freenet/crypt/Util.java
Log:
Delete unused function written by giannij, who we can't seem to get hold of.
Modified: trunk/freenet/src/freenet/crypt/Util.java
===================================================================
--- trunk/freenet/src/freenet/crypt/Util.java 2006-11-29 02:53:32 UTC (rev
11107)
+++ trunk/freenet/src/freenet/crypt/Util.java 2006-11-29 15:08:53 UTC (rev
11108)
@@ -163,23 +163,6 @@
return null;
}
- /**
- * Hashes len bytes from an InputStream.
- */
- public static byte[] hashStream(Digest d, InputStream in, long len)
- throws IOException {
- byte[] buffer = new byte[BUFFER_SIZE];
- int rc = 0;
- do {
- int nBytes = (len > BUFFER_SIZE) ? BUFFER_SIZE : (int)
len;
- rc = in.read(buffer, 0, nBytes);
- if (rc > 0)
- d.update(buffer, 0, rc);
- len -= rc;
- } while ((rc != -1) && (len > 0));
- return d.digest();
- }
-
public static byte[] xor(byte[] b1, byte[] b2) {
int maxl = Math.max(b1.length, b2.length);
byte[] rv = new byte[maxl];