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

Fix ChaCha20 on 32-bit platforms #99

Merged
merged 2 commits into from
May 29, 2020
Merged

Fix ChaCha20 on 32-bit platforms #99

merged 2 commits into from
May 29, 2020

Conversation

themiron
Copy link
Contributor

On 32-bit platforms with old compiler STORE64H() parameter is not auto-expanded to 64-bit value, causing wrong IV data. Spotted on BCM4706 MIPS32r2 with GCC 4.2.4:
Exit before auth: Integrity error (bad packet size 2065808956)

Also, fix Chacha20-Poly1305 and AES-GCM trace debug messages, functions were renamed earlier and trace messages - not.

On 32-bit platforms with old compiler STORE64H() parameter is
not auto-expanded to 64-bit value, causing wrong IV data.
Spotted on BCM4706 MIPS32r2 with GCC 4.2.4:
	Exit before auth: Integrity error (bad packet size 2065808956)
Functions were renamed earlier and trace messages - not.
@mkj mkj merged commit b0243b0 into mkj:master May 29, 2020
@themiron
Copy link
Contributor Author

Thank you

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.

None yet

2 participants