package org.ibex.io;
import java.io.*;
+import org.ibex.crypto.*;
/** package-private class */
abstract class ByteBufInputStream extends InputStream {
private byte[] buf = new byte[8192];
private int start = 0;
private int end = 0;
+ public Digest digest = null;
public ByteBufInputStream(InputStream is) {
this.is = is;
start = end = 0;
continue;
}
+ } else {
+ if (digest != null) digest.update(buf, 0, end);
}
} while(end==0);
if (end == -1) { end = 0; return -1; }