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

argon2: fix big endian support #482

Merged
merged 1 commit into from
Jan 20, 2024
Merged

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Jan 20, 2024

This was broken in #247, which added unsafe pointer casts to access the contents of a block, which only works on little endian targets.

This reverts back to something closer to the previous code, which used u64::{from_le_bytes, to_le_bytes} instead.

It also adds cross tests for PPC32 to spot future regressions.

Fixes #481.

This was broken in #247, which added unsafe pointer casts to access the
contents of a block, which only works on little endian targets.

This reverts back to something closer to the previous code, which used
`u64::{from_le_bytes, to_le_bytes}` instead.

It also adds cross tests for PPC32 to spot future regressions.
@tarcieri tarcieri force-pushed the argon2/fix-big-endian-support branch from 9965292 to d2d91bd Compare January 20, 2024 15:02
@tarcieri tarcieri merged commit 28dfc27 into master Jan 20, 2024
17 checks passed
@tarcieri tarcieri deleted the argon2/fix-big-endian-support branch January 20, 2024 15:57
@tarcieri tarcieri mentioned this pull request Jan 20, 2024
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.

[argon2] many tests fail on s390x, likely due to endianness issues
1 participant