summaryrefslogtreecommitdiff
path: root/c_src/include/crypto/chacha.h
diff options
context:
space:
mode:
Diffstat (limited to 'c_src/include/crypto/chacha.h')
-rw-r--r--c_src/include/crypto/chacha.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/c_src/include/crypto/chacha.h b/c_src/include/crypto/chacha.h
new file mode 100644
index 00000000..f004cfb5
--- /dev/null
+++ b/c_src/include/crypto/chacha.h
@@ -0,0 +1,15 @@
+/*
+ * Common values for the ChaCha20 algorithm
+ */
+
+#ifndef _CRYPTO_CHACHA20_H
+#define _CRYPTO_CHACHA20_H
+
+#include <linux/types.h>
+#include <linux/crypto.h>
+
+#define CHACHA_IV_SIZE 16
+#define CHACHA_KEY_SIZE 32
+#define CHACHA_BLOCK_SIZE 64
+
+#endif