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

chacha20: fix rng feature on big endian platforms #202

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

tarcieri
Copy link
Member

It wasn't necessarily "broken" in that it doesn't really matter what endianness random data comes in, but this at least makes the RNG output consistent on big and little endian platforms.

It wasn't necessarily "broken" in that it doesn't really matter what
endianness random data comes in, but this at least makes the RNG output
consistent on big and little endian platforms.
@newpavlov
Copy link
Member

newpavlov commented Dec 10, 2020

Well, in some applications PRNG reproducibility is quite important, so I think it was "broken" in a certain sense. We probably should add BE tests to other RustCrypto crates as well. I also had one BE mistake once (we were using Travis at the time).

@tarcieri tarcieri merged commit 52edf36 into master Dec 10, 2020
@tarcieri tarcieri deleted the chacha20/big-endian-rng-fixes branch December 10, 2020 19:10
@tarcieri tarcieri mentioned this pull request Apr 29, 2021
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