aboutsummaryrefslogtreecommitdiffstats
path: root/include/crypto/chacha20.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-11 21:05:36 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-18 05:57:16 +0200
commit60e9cd091ac773492d4587fc996a4b31f08b0a92 (patch)
treec7cd05e5aa73f73277ab6d50f15e15993a20a52e /include/crypto/chacha20.h
parent[DO NOT UPSTREAM] integration tree maintainer scripts (diff)
downloadlinux-dev-60e9cd091ac773492d4587fc996a4b31f08b0a92.tar.xz
linux-dev-60e9cd091ac773492d4587fc996a4b31f08b0a92.zip
random: port ChaCha20 usage to Zincjd/random-zinc
This allows us to get rid of the remaining vestages of the old ChaCha20 implementation. In porting random.c to Zinc, nothing changes in the actual calculations being made, but the API used changes very slightly. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Greg KH <gregkh@linuxfoundation.org> Cc: Samuel Neves <sneves@dei.uc.pt> Cc: Jean-Philippe Aumasson <jeanphilippe.aumasson@gmail.com> Cc: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'include/crypto/chacha20.h')
-rw-r--r--include/crypto/chacha20.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/crypto/chacha20.h b/include/crypto/chacha20.h
deleted file mode 100644
index 3b92f58f3891..000000000000
--- a/include/crypto/chacha20.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Common values for the ChaCha20 algorithm
- */
-
-#ifndef _CRYPTO_CHACHA20_H
-#define _CRYPTO_CHACHA20_H
-
-#define CHACHA20_IV_SIZE 16
-#define CHACHA20_KEY_SIZE 32
-#define CHACHA20_BLOCK_SIZE 64
-#define CHACHA20_BLOCK_WORDS (CHACHA20_BLOCK_SIZE / sizeof(u32))
-
-void chacha20_block(u32 *state, u32 *stream);
-
-#endif