diff options
Diffstat (limited to 'include/crypto')
| -rw-r--r-- | include/crypto/chacha20.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/crypto/chacha20.h b/include/crypto/chacha20.h index 20d20f681a72..445fc45f4b5b 100644 --- a/include/crypto/chacha20.h +++ b/include/crypto/chacha20.h | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #ifndef _CRYPTO_CHACHA20_H | 5 | #ifndef _CRYPTO_CHACHA20_H |
| 6 | #define _CRYPTO_CHACHA20_H | 6 | #define _CRYPTO_CHACHA20_H |
| 7 | 7 | ||
| 8 | #include <crypto/skcipher.h> | ||
| 8 | #include <linux/types.h> | 9 | #include <linux/types.h> |
| 9 | #include <linux/crypto.h> | 10 | #include <linux/crypto.h> |
| 10 | 11 | ||
| @@ -18,9 +19,8 @@ struct chacha20_ctx { | |||
| 18 | 19 | ||
| 19 | void chacha20_block(u32 *state, void *stream); | 20 | void chacha20_block(u32 *state, void *stream); |
| 20 | void crypto_chacha20_init(u32 *state, struct chacha20_ctx *ctx, u8 *iv); | 21 | void crypto_chacha20_init(u32 *state, struct chacha20_ctx *ctx, u8 *iv); |
| 21 | int crypto_chacha20_setkey(struct crypto_tfm *tfm, const u8 *key, | 22 | int crypto_chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, |
| 22 | unsigned int keysize); | 23 | unsigned int keysize); |
| 23 | int crypto_chacha20_crypt(struct blkcipher_desc *desc, struct scatterlist *dst, | 24 | int crypto_chacha20_crypt(struct skcipher_request *req); |
| 24 | struct scatterlist *src, unsigned int nbytes); | ||
| 25 | 25 | ||
| 26 | #endif | 26 | #endif |
