gnu.crypto.mode
Class ECB
- Cloneable, IBlockCipher, IMode
public class ECB
implements Cloneable
The implementation of the Electronic Codebook mode.
The Electronic Codebook (ECB) mode is a confidentiality mode that is
defined as follows:
- ECB Encryption: Cj = CIPHK(Pj) for j = 1...n
- ECB Decryption: Pj = CIPH-1K(Cj) for j = 1...n
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:
-
Recommendation for Block Cipher Modes of Operation Methods and Techniques,
Morris Dworkin.
Version:
ECB(IBlockCipher underlyingCipher, int cipherBlockSize) - Trivial package-private constructor for use by the Factory class.
|
blockSizes , clone , currentBlockSize , decryptBlock , defaultBlockSize , defaultKeySize , encryptBlock , init , keySizes , name , reset , selfTest , setup , teardown , update |
ECB
(package private) ECB(IBlockCipher underlyingCipher,
int cipherBlockSize)
Trivial package-private constructor for use by the Factory class.
underlyingCipher
- the underlying cipher implementation.cipherBlockSize
- the underlying cipher block size to use.
setup
public void setup()
- setup in interface BaseMode
teardown
public void teardown()
- teardown in interface BaseMode
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.