-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
The old ChaCha8, ChaCha12 and ChaCha20 is better then current ChaCha with "Rounds" parameter #800
Comments
Yeah, that's bullshit. Let me get that fixed. That's going to affect, Salsa, ChaCha, XChaCha and a few others.
This does not matter much in practice. I used to favor the |
Great, thanks @noloader |
noloader
added a commit
to noloader/cryptopp
that referenced
this issue
Feb 12, 2019
noloader
added a commit
that referenced
this issue
Feb 12, 2019
Cleared at Commit e499131ea6ba. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crypto++ 8.0 Issue Report
I think the old ChaCha8, ChaCha12 and ChaCha20 is better then current ChaCha with "Rounds" parameter, because:
New API need to setting up the rounds on every key reset. This usage is neither natural nor convenient, since the rounds is itself a fixed part of the algorithm, it is usually not modified when changing the key. In essence, different rounds can actually be seen as completely different algorithms. Setting the number of rounds from 8 to 20 is like switching the encryption algorithm from DES to AES. The new API forces us to remember its rounds and specify it each time we reset the password.
Template parameters are known constants at compile time, and I guess using template parameters allows some compilers to better optimize their generated code.
The text was updated successfully, but these errors were encountered: