summaryrefslogtreecommitdiffhomepage
path: root/src/crypto/poly1305-avx2-x86_64.S
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-05-21 17:46:31 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-05-21 17:46:31 +0200
commit1398093d14a6b1b4064f3dd5513ec67c38683193 (patch)
treec0b7a644838e3b0ded01496d597b418fcc6a1514 /src/crypto/poly1305-avx2-x86_64.S
parent1426d5b77c08af0d72a6a46d8e9226c4c4f7a505 (diff)
chacha20poly1305: move constants to rodata
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/poly1305-avx2-x86_64.S')
-rw-r--r--src/crypto/poly1305-avx2-x86_64.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crypto/poly1305-avx2-x86_64.S b/src/crypto/poly1305-avx2-x86_64.S
index f5b8c8a..35d958f 100644
--- a/src/crypto/poly1305-avx2-x86_64.S
+++ b/src/crypto/poly1305-avx2-x86_64.S
@@ -11,11 +11,12 @@
#include <linux/linkage.h>
-.data
+.section .rodata.cst32.ANMASK, "aM", @progbits, 32
.align 32
-
ANMASK: .octa 0x0000000003ffffff0000000003ffffff
.octa 0x0000000003ffffff0000000003ffffff
+.section .rodata.cst32.ORMASK, "aM", @progbits, 32
+.align 32
ORMASK: .octa 0x00000000010000000000000001000000
.octa 0x00000000010000000000000001000000