#include <linux/module.h>
#include <linux/types.h>
#include <linux/crypto.h>
#include <linux/err.h>
#include <crypto/algapi.h>
#include <crypto/internal/simd.h>
#include <crypto/twofish.h>
#include "twofish.h"
#include "ecb_cbc_helpers.h"
#define TWOFISH_PARALLEL_BLOCKS …
asmlinkage void twofish_ecb_enc_8way(const void *ctx, u8 *dst, const u8 *src);
asmlinkage void twofish_ecb_dec_8way(const void *ctx, u8 *dst, const u8 *src);
asmlinkage void twofish_cbc_dec_8way(const void *ctx, u8 *dst, const u8 *src);
static int twofish_setkey_skcipher(struct crypto_skcipher *tfm,
const u8 *key, unsigned int keylen)
{ … }
static inline void twofish_enc_blk_3way(const void *ctx, u8 *dst, const u8 *src)
{ … }
static int ecb_encrypt(struct skcipher_request *req)
{ … }
static int ecb_decrypt(struct skcipher_request *req)
{ … }
static int cbc_encrypt(struct skcipher_request *req)
{ … }
static int cbc_decrypt(struct skcipher_request *req)
{ … }
static struct skcipher_alg twofish_algs[] = …;
static struct simd_skcipher_alg *twofish_simd_algs[ARRAY_SIZE(twofish_algs)];
static int __init twofish_init(void)
{ … }
static void __exit twofish_exit(void)
{ … }
module_init(…) …;
module_exit(twofish_exit);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS_CRYPTO(…) …;