summaryrefslogtreecommitdiffhomepage
path: root/src/crypto
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-29 05:17:38 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-10-02 03:41:49 +0200
commit2e252d1def72f6c626e88515bb0b88a731a9ebd3 (patch)
tree5df6ac38fdb4d1c81a1deaa6c002ff35b8255bd5 /src/crypto
parent411bbf2867f4d6cb00570827daf5c5068185ea17 (diff)
crypto: document what's used from <crypto/ beside #include
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/include/zinc/blake2s.h1
-rw-r--r--src/crypto/zinc/chacha20/chacha20.c2
-rw-r--r--src/crypto/zinc/chacha20poly1305.c2
-rw-r--r--src/crypto/zinc/curve25519/curve25519.c2
4 files changed, 3 insertions, 4 deletions
diff --git a/src/crypto/include/zinc/blake2s.h b/src/crypto/include/zinc/blake2s.h
index da313de..3dbe4b5 100644
--- a/src/crypto/include/zinc/blake2s.h
+++ b/src/crypto/include/zinc/blake2s.h
@@ -8,7 +8,6 @@
#include <linux/types.h>
#include <linux/kernel.h>
-#include <crypto/algapi.h>
enum blake2s_lengths {
BLAKE2S_BLOCK_SIZE = 64,
diff --git a/src/crypto/zinc/chacha20/chacha20.c b/src/crypto/zinc/chacha20/chacha20.c
index e71e702..c6a29f8 100644
--- a/src/crypto/zinc/chacha20/chacha20.c
+++ b/src/crypto/zinc/chacha20/chacha20.c
@@ -13,7 +13,7 @@
#include <linux/module.h>
#include <linux/init.h>
#include <linux/vmalloc.h>
-#include <crypto/algapi.h>
+#include <crypto/algapi.h> // For crypto_xor_cpy.
#if defined(CONFIG_ZINC_ARCH_X86_64)
#include "chacha20-x86_64-glue.h"
diff --git a/src/crypto/zinc/chacha20poly1305.c b/src/crypto/zinc/chacha20poly1305.c
index 59f1d00..4c38dde 100644
--- a/src/crypto/zinc/chacha20poly1305.c
+++ b/src/crypto/zinc/chacha20poly1305.c
@@ -14,7 +14,7 @@
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
-#include <crypto/scatterwalk.h>
+#include <crypto/scatterwalk.h> // For blkcipher_walk.
static const u8 pad0[16] = { 0 };
diff --git a/src/crypto/zinc/curve25519/curve25519.c b/src/crypto/zinc/curve25519/curve25519.c
index 87fe860..e57962d 100644
--- a/src/crypto/zinc/curve25519/curve25519.c
+++ b/src/crypto/zinc/curve25519/curve25519.c
@@ -17,7 +17,7 @@
#include <linux/random.h>
#include <linux/module.h>
#include <linux/init.h>
-#include <crypto/algapi.h>
+#include <crypto/algapi.h> // For crypto_memneq.
#if defined(CONFIG_ZINC_ARCH_X86_64)
#include "curve25519-x86_64-glue.h"