Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cfb8 Buf Encryptor and Decryptor #31

Open
wyatt-herkamp opened this issue Jan 4, 2023 · 3 comments
Open

cfb8 Buf Encryptor and Decryptor #31

wyatt-herkamp opened this issue Jan 4, 2023 · 3 comments

Comments

@wyatt-herkamp
Copy link

@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

@newpavlov
Copy link
Member

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

@xTachyon
Copy link

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.

@tarcieri
Copy link
Member

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants