summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/zinc/curve25519
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-06 14:04:36 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-06 14:08:45 -0600
commitf103258da1961c1f7d2aa11feb48f7c9376c137e (patch)
tree6f25954fa6c5f61ef1e53143eedf89ef3bb1ebf8 /src/crypto/zinc/curve25519
parent75d1ad0e24fb72bfb9fcf58982b9d6d4194f8816 (diff)
curve25519: arm: do not modify sp directly
Thumb doesn't like this. Reported-by: Roman Mamedov <rm@romanrm.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc/curve25519')
-rw-r--r--src/crypto/zinc/curve25519/curve25519-arm.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/zinc/curve25519/curve25519-arm.S b/src/crypto/zinc/curve25519/curve25519-arm.S
index 0020ed2..ad6690b 100644
--- a/src/crypto/zinc/curve25519/curve25519-arm.S
+++ b/src/crypto/zinc/curve25519/curve25519-arm.S
@@ -17,9 +17,9 @@
ENTRY(curve25519_neon)
push {r4-r11, lr}
mov ip, sp
- sub sp, sp, #704
- and sp, sp, #0xfffffff0
- add r3, sp, #0
+ sub r3, sp, #704
+ and r3, r3, #0xfffffff0
+ mov sp, r3
movw r4, #0
movw r5, #254
vmov.i32 q0, #1