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)
Version:
CBC(IBlockCipher underlyingCipher, int cipherBlockSize) - Package-private constructor for the factory class.
|
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()
- setup in interface BaseMode
teardown
public void teardown()
- teardown in interface BaseMode
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.