block-modes icon indicating copy to clipboard operation
block-modes copied to clipboard

cfb8 Buf Encryptor and Decryptor

Open wyatt-herkamp opened this issue 3 years ago • 4 comments

@tarcieri mentioned in the zulip chat that CFB8 needs something similar to #17 

Currently the Encryptor and Decrytor methods are one shot and that would result in a lot of cloning 

https://rustcrypto.zulipchat.com/#narrow/stream/260036-general/topic/.28no.20topic.29/near/319304450

wyatt-herkamp avatar Jan 04 '23 12:01 wyatt-herkamp

As a temporary workaround you could cast &mut [u8] to &mut [GenericArray<u8, U1>] and use the encrypt_blocks_mut method. But I agree that inherent "buffering" methods would be a good addition (note that no buffering is needed in practice, since the mode already operates on byte granularity).

newpavlov avatar Jan 04 '23 20:01 newpavlov

I am also interested in this. Currently I'm using 0.7.1 which seems to be the last version in which you could do this, but it's not ideal at all.

xTachyon avatar Jan 14 '24 02:01 xTachyon

@xTachyon it needs a PR with functionality similar to #17 (or perhaps we could upstream the core of that somewhere so it can be reused)

tarcieri avatar Jan 17 '24 15:01 tarcieri