gnu.crypto.mode
public class CFB extends BaseMode
I[1] = IV I[j] = LSB(b-s, I[j-1]) | C[j-1] for j = 2...n O[j] = CIPH(K, I[j]) for j = 1,2...n C[j] = P[j] ^ MSB(s, O[j]) for j = 1,2...n
And decryption is:
I[1] = IV I[j] = LSB(b-s, I[j-1]) | C[j-1] for j = 2...n O[j] = CIPH(K, I[j]) for j = 1,2...n P[j] = C[j] ^ MSB(s, O[j]) for j = 1,2...n
CFB mode requires an initialization vector, which need not be kept secret.
References:
Version: $Revision: 1.2 $
| Constructor Summary | |
|---|---|
| CFB(IBlockCipher underlyingCipher, int cipherBlockSize)
Package-private constructor for the factory class.
| |
| Method Summary | |
|---|---|
| Object | clone() |
| void | decryptBlock(byte[] in, int inOffset, byte[] out, int outOffset) |
| void | encryptBlock(byte[] in, int inOffset, byte[] out, int outOffset) |
| void | setup() |
| void | teardown() |
Parameters: underlyingCipher The cipher implementation. cipherBlockSize The cipher's block size.