summaryrefslogtreecommitdiff
path: root/ext/arm32-neon-salsa2012-asm/salsa2012.h
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-19 15:58:20 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-19 15:58:20 -0700
commit8e1ac9fb0cd3c8c60370e5cc47154edf13bdd814 (patch)
tree97d56191a304a45cf7e91b12cb93df58478ea3bb /ext/arm32-neon-salsa2012-asm/salsa2012.h
parentbc61357a44cf4906dda2b30c4474ae891982e620 (diff)
downloadinfinitytier-8e1ac9fb0cd3c8c60370e5cc47154edf13bdd814.tar.gz
infinitytier-8e1ac9fb0cd3c8c60370e5cc47154edf13bdd814.zip
ARM NEON Salsa20/12.
Diffstat (limited to 'ext/arm32-neon-salsa2012-asm/salsa2012.h')
-rw-r--r--ext/arm32-neon-salsa2012-asm/salsa2012.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/arm32-neon-salsa2012-asm/salsa2012.h b/ext/arm32-neon-salsa2012-asm/salsa2012.h
new file mode 100644
index 00000000..7820a2e6
--- /dev/null
+++ b/ext/arm32-neon-salsa2012-asm/salsa2012.h
@@ -0,0 +1,15 @@
+#ifndef ZT_SALSA2012_ARM32NEON_ASM
+#define ZT_SALSA2012_ARM32NEON_ASM
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// ciphertext buffer, message/NULL, length, nonce (8 bytes), key (32 bytes)
+extern int zt_salsa2012_armneon3_xor(unsigned char *c,const unsigned char *m,unsigned long long len,const unsigned char *n,const unsigned char *k);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif