CFB.decrypt

ubyte[] decrypt(const(ubyte)[] input)

Decrypts data using CFB mode.

CFB decryption:

  1. Encrypt the shift register to produce output block
  2. XOR ciphertext segment with MSB of output block
  3. Shift ciphertext (not plaintext) into the shift register

Parameters

inputCiphertext 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.