summaryrefslogtreecommitdiff
path: root/crypto/arc4.c
diff options
context:
space:
mode:
authorIuliana Prodan <iuliana.prodan@nxp.com>2019-02-08 15:50:08 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2019-02-15 13:21:55 +0800
commit6a0d2d3a085be7bc93a145cdeb60486e23a6e3ea (patch)
tree1e0814fa9e427dbbdc090fd35ffceb0adf585343 /crypto/arc4.c
parent3abef4c1e298306f269bff7a3ba440376a8e6955 (diff)
downloadlinux-crypto-6a0d2d3a085be7bc93a145cdeb60486e23a6e3ea.tar.gz
linux-crypto-6a0d2d3a085be7bc93a145cdeb60486e23a6e3ea.zip
crypto: export arc4 defines
Some arc4 cipher algorithm defines show up in two places: crypto/arc4.c and drivers/crypto/bcm/cipher.h. Let's export them in a common header and update their users. Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/arc4.c')
-rw-r--r--crypto/arc4.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/arc4.c b/crypto/arc4.c
index 652d2439..6c93342e 100644
--- a/crypto/arc4.c
+++ b/crypto/arc4.c
@@ -13,14 +13,11 @@
*/
#include <crypto/algapi.h>
+#include <crypto/arc4.h>
#include <crypto/internal/skcipher.h>
#include <linux/init.h>
#include <linux/module.h>
-#define ARC4_MIN_KEY_SIZE 1
-#define ARC4_MAX_KEY_SIZE 256
-#define ARC4_BLOCK_SIZE 1
-
struct arc4_ctx {
u32 S[256];
u32 x, y;