gnu.crypto.mode
public class CBC extends BaseMode implements Cloneable
Ci = EK(Pi ^ Ci-1
Similarly, decrypting is:
Pi = Ci-1 ^ DK(Ci)
Version: $Revision: 1.3 $
| Constructor Summary | |
|---|---|
| CBC(IBlockCipher underlyingCipher, int cipherBlockSize)
Package-private constructor for 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() |
Parameters: underlyingCipher The cipher implementation. cipherBlockSize The cipher's block size.