1 /* 2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved. 3 * Please refer to the LICENSE.txt for licensing details. 4 */ 5 package ch.ethz.ssh2.crypto.digest; 6 7 /** 8 * Digest. 9 * 10 * @author Christian Plattner 11 * @version 2.50, 03/15/10 12 */ 13 public interface Digest 14 { 15 public int getDigestLength(); 16 17 public void update(byte b); 18 19 public void update(byte[] b); 20 21 public void update(byte b[], int off, int len); 22 23 public void reset(); 24 25 public void digest(byte[] out); 26 27 public void digest(byte[] out, int off); 28 } 29