1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Common values for the Salsa20 algorithm
6 #ifndef _CRYPTO_SALSA20_H
7 #define _CRYPTO_SALSA20_H
9 #include <linux/types.h>
11 #define SALSA20_IV_SIZE 8
12 #define SALSA20_MIN_KEY_SIZE 16
13 #define SALSA20_MAX_KEY_SIZE 32
14 #define SALSA20_BLOCK_SIZE 64
16 struct crypto_skcipher
;
19 u32 initial_state
[16];
22 void crypto_salsa20_init(u32
*state
, const struct salsa20_ctx
*ctx
,
24 int crypto_salsa20_setkey(struct crypto_skcipher
*tfm
, const u8
*key
,
25 unsigned int keysize
);
27 #endif /* _CRYPTO_SALSA20_H */