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 {x,}chacha_{armv6,neon} to follow arm calling convention #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yumkam
Copy link
Contributor

@yumkam yumkam commented Mar 16, 2019

xchacha_{armv6,neon} corrupts callee-saved register r7.
{x,}chacha_{armv6,neon} (temporarily) stores data below %sp,
then moves %sp down and expect data to be intact.

I believe this fixes #10 and #6;
Changes in chacha_armv6-32.inc and chacha_neon-32.inc are exactly same.

xchacha_{armv6,neon} corrupts callee-saved register r7.
{x,}chacha_{armv6,neon} (temporarily) stores data below %sp,
then moves %sp down and expect data to be intact.
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.

arm one-shot chacha_armv6 stores data below stack pointer
1 participant