diff options
author | Iuliana Prodan <iuliana.prodan@nxp.com> | 2019-02-08 08:50:08 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-02-15 00:21:55 -0500 |
commit | bd30cf533b77420b7c504c09cef5ba26b0c9dcb4 (patch) | |
tree | ac98fc4fef223060b37e255578258c941544afaf /crypto/arc4.c | |
parent | ba4cf71b6f1b0165f34888b17fe44f4235dd0132 (diff) |
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.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/arc4.c b/crypto/arc4.c index 652d24399afa..6c93342e3405 100644 --- a/crypto/arc4.c +++ b/crypto/arc4.c | |||
@@ -13,14 +13,11 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <crypto/algapi.h> | 15 | #include <crypto/algapi.h> |
16 | #include <crypto/arc4.h> | ||
16 | #include <crypto/internal/skcipher.h> | 17 | #include <crypto/internal/skcipher.h> |
17 | #include <linux/init.h> | 18 | #include <linux/init.h> |
18 | #include <linux/module.h> | 19 | #include <linux/module.h> |
19 | 20 | ||
20 | #define ARC4_MIN_KEY_SIZE 1 | ||
21 | #define ARC4_MAX_KEY_SIZE 256 | ||
22 | #define ARC4_BLOCK_SIZE 1 | ||
23 | |||
24 | struct arc4_ctx { | 21 | struct arc4_ctx { |
25 | u32 S[256]; | 22 | u32 S[256]; |
26 | u32 x, y; | 23 | u32 x, y; |