01: package ch.ethz.ssh2.crypto.digest;
02:
03: /**
04: * Digest.
05: *
06: * @author Christian Plattner, plattner@inf.ethz.ch
07: * @version $Id: Digest.java,v 1.2 2005/08/11 12:47:29 cplattne Exp $
08: */
09: public interface Digest {
10: public int getDigestLength();
11:
12: public void update(byte b);
13:
14: public void update(byte[] b);
15:
16: public void update(byte b[], int off, int len);
17:
18: public void reset();
19:
20: public void digest(byte[] out);
21:
22: public void digest(byte[] out, int off);
23: }
|