gnu.crypto.mode
public class ECB extends BaseMode implements Cloneable
The implementation of the Electronic Codebook mode.
The Electronic Codebook (ECB) mode is a confidentiality mode that is defined as follows:
In ECB encryption, the forward cipher function is applied directly, and independently, to each block of the plaintext. The resulting sequence of output blocks is the ciphertext.
In ECB decryption, the inverse cipher function is applied directly, and independently, to each block of the ciphertext. The resulting sequence of output blocks is the plaintext.
References:
Version: $Revision: 1.6 $
Constructor Summary | |
---|---|
ECB(IBlockCipher underlyingCipher, int cipherBlockSize) Trivial package-private constructor for use by the Factory class. |
Method Summary | |
---|---|
Object | clone() |
void | decryptBlock(byte[] in, int i, byte[] out, int o) |
void | encryptBlock(byte[] in, int i, byte[] out, int o) |
void | setup() |
void | teardown() |
Trivial package-private constructor for use by the Factory class.
Parameters: underlyingCipher the underlying cipher implementation. cipherBlockSize the underlying cipher block size to use.