273
|
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.cipher;
|
|
6
|
|
7 /**
|
|
8 * BlockCipher.
|
307
|
9 *
|
273
|
10 * @author Christian Plattner
|
|
11 * @version 2.50, 03/15/10
|
|
12 */
|
307
|
13 public interface BlockCipher {
|
|
14 public void init(boolean forEncryption, byte[] key);
|
273
|
15
|
307
|
16 public int getBlockSize();
|
273
|
17
|
307
|
18 public void transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff);
|
273
|
19 }
|