01: package ch.ethz.ssh2.crypto.cipher;
02:
03: /**
04: * BlockCipher.
05: *
06: * @author Christian Plattner, plattner@inf.ethz.ch
07: * @version $Id: BlockCipher.java,v 1.1 2005/05/26 14:53:27 cplattne Exp $
08: */
09: public interface BlockCipher {
10: public void init(boolean forEncryption, byte[] key);
11:
12: public int getBlockSize();
13:
14: public void transformBlock(byte[] src, int srcoff, byte[] dst,
15: int dstoff);
16: }
|