22 #include <linux/module.h>
25 #define SALSA20_IV_SIZE 8U
26 #define SALSA20_MIN_KEY_SIZE 16U
27 #define SALSA20_MAX_KEY_SIZE 32U
30 #define salsa20_keysetup ECRYPT_keysetup
31 #define salsa20_ivsetup ECRYPT_ivsetup
32 #define salsa20_encrypt_bytes ECRYPT_encrypt_bytes
62 blkcipher_walk_init(&walk, dst, src, nbytes);
67 if (
likely(walk.nbytes == nbytes))
70 walk.dst.virt.addr, nbytes);
74 while (walk.nbytes >= 64) {
77 walk.nbytes - (walk.nbytes % 64));
83 walk.dst.virt.addr, walk.nbytes);
91 .cra_name =
"salsa20",
92 .cra_driver_name =
"salsa20-asm",
117 static void __exit fini(
void)