This repository was archived by the owner on Sep 20, 2023. It is now read-only.
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
CFB mode for stream cipher? #86
Open
Description
Hi,
Here is question about if there is any plan adding CFB mode to stream cipher.
Unlike CBC or ECB, CFB is a self-synchronizing stream cipher, which can work perfect in both block and stream mode.
It would be great if we can have such code
cfbStreamInit :: (BlockCipher cipher, ByteArray key) => key -> IV cipher -> StreamCipher cipher
cfbStreamEncrypt :: ByteArray ba => StreamCipher cipher -> ba -> (ba , StreamCipher cipher)
Or just like what AES dose, having some monad encasing everything, IV and IV offset, in the context.