summaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/chacha20/constants.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcryptobox/chacha20/constants.S')
-rw-r--r--src/libcryptobox/chacha20/constants.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcryptobox/chacha20/constants.S b/src/libcryptobox/chacha20/constants.S
new file mode 100644
index 0000000..ff109a3
--- /dev/null
+++ b/src/libcryptobox/chacha20/constants.S
@@ -0,0 +1,6 @@
+SECTION_RODATA
+.p2align 4,,15
+chacha_constants:
+.long 0x61707865,0x3320646e,0x79622d32,0x6b206574 /* "expand 32-byte k" */
+.byte 2,3,0,1,6,7,4,5,10,11,8,9,14,15,12,13 /* pshufb rotate by 16 */
+.byte 3,0,1,2,7,4,5,6,11,8,9,10,15,12,13,14 /* pshufb rotate by 8 */