Skip to content

What happens when output of chacha20 is also its input? #1095

Answered by enkore
al-caveman asked this question in Q&A
Discussion options

You must be logged in to vote

This is guaranteed to work. The docs:

m and c can point to the same address (in-place encryption/decryption). If they don't, the regions should not overlap.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by al-caveman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants