CFB.decrypt
ubyte[] decrypt(const(ubyte)[] input)Decrypts data using CFB mode.
CFB decryption:
- Encrypt the shift register to produce output block
- XOR ciphertext segment with MSB of output block
- Shift ciphertext (not plaintext) into the shift register
Parameters
input | Ciphertext to decrypt. Length must be a multiple of segment size. |
Returns
Plaintext of the same length as input.
Throws
CryptoException if input length is not a multiple of segment size.