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

Using streamed data with ChaCha20Poly1305 #561

Closed
pfzetto opened this issue Oct 28, 2023 · 2 comments
Closed

Using streamed data with ChaCha20Poly1305 #561

pfzetto opened this issue Oct 28, 2023 · 2 comments

Comments

@pfzetto
Copy link

pfzetto commented Oct 28, 2023

Hello,
I want to encrypt a stream using ChaCha20Poly1305.
chacha20 does supply the apply_keystream function to encrypt streamed data.
I can't find a alternative to that using ChaCha20Poly1305.
As far as I can tell you have to supply the whole plain-/ciphertext loaded in memory.

How could I encrypt data that is larger that the available memory in my machine?

Am I missing something?

Cheers,
Paul

@newpavlov
Copy link
Member

Right now it's not possible without manually using the underlying primitives. See RustCrypto/traits#1364 for more information.

@pfzetto
Copy link
Author

pfzetto commented Oct 28, 2023

Thanks

@pfzetto pfzetto closed this as completed Oct 28, 2023
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

3 participants
@newpavlov @pfzetto and others