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

x.crypto.chacha20: fix issue on consecutive calls of xor_key_stream #24003

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

blackshirt
Copy link
Contributor

@blackshirt blackshirt commented Mar 22, 2025

This PR fixs the issue related consecutive calls of xor_key_stream thats not handled correctly after the first calls. Its issue was reported by @einar-hjortdal . See the issue at 23977. Thank for report the issue.

In this PR, we follow and adapt the go version and also unifies between chach20_block and generic_key_stream method to single one in the form of chacha20_block_generic. Its also adds a test for this consecutive calls issue.

Thanks

Copy link

Connected to Huly®: V_0.6-22396

@einar-hjortdal
Copy link
Contributor

Thank you for taking care of this, very quickly too!

@blackshirt
Copy link
Contributor Author

blackshirt commented Mar 22, 2025

I think the rest of the CI test still faills . I Will look into it asap .
Its need more test

Updates
I'v sent a second commit to make chacha20poly1305 module works with the rest.

@blackshirt
Copy link
Contributor Author

Thank you for taking care of this, very quickly too!

nope

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

Successfully merging this pull request may close these issues.

2 participants