gnu.crypto.mode
Class CBC
- Cloneable, IBlockCipher, IMode
public class CBC
implements Cloneable
The Cipher Block Chaining mode. This mode introduces feedback into
the cipher by XORing the previous ciphertext block with the plaintext
block before encipherment. That is, encrypting looks like this:
Ci = EK(Pi ^
Ci-1
Similarly, decrypting is:
Pi = Ci-1 ^
DK(Ci)
CBC(IBlockCipher underlyingCipher, int cipherBlockSize) - Package-private constructor for the factory class.
|
Object | clone()
|
void | decryptBlock(byte[] in, int i, byte[] out, int o)
|
void | encryptBlock(byte[] in, int i, byte[] out, int o)
|
void | setup() - The initialisation phase of the concrete mode implementation.
|
void | teardown() - The termination phase of the concrete mode implementation.
|
blockSizes , clone , currentBlockSize , decryptBlock , defaultBlockSize , defaultKeySize , encryptBlock , init , keySizes , name , reset , selfTest , setup , teardown , update |
CBC
(package private) CBC(IBlockCipher underlyingCipher,
int cipherBlockSize)
Package-private constructor for the factory class.
underlyingCipher
- The cipher implementation.cipherBlockSize
- The cipher's block size.
setup
public void setup()
The initialisation phase of the concrete mode implementation.
- setup in interface BaseMode
teardown
public void teardown()
The termination phase of the concrete mode implementation.
- teardown in interface BaseMode
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.