Skip to content
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
@srayuws

Description

@srayuws

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions