|
@@ -44,17 +44,21 @@
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
-asmlinkage void twofish_enc_blk(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
|
|
|
-asmlinkage void twofish_dec_blk(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
|
|
|
+asmlinkage void twofish_enc_blk(struct twofish_ctx *ctx, u8 *dst,
|
|
|
+ const u8 *src);
|
|
|
+EXPORT_SYMBOL_GPL(twofish_enc_blk);
|
|
|
+asmlinkage void twofish_dec_blk(struct twofish_ctx *ctx, u8 *dst,
|
|
|
+ const u8 *src);
|
|
|
+EXPORT_SYMBOL_GPL(twofish_dec_blk);
|
|
|
|
|
|
static void twofish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
|
|
|
{
|
|
|
- twofish_enc_blk(tfm, dst, src);
|
|
|
+ twofish_enc_blk(crypto_tfm_ctx(tfm), dst, src);
|
|
|
}
|
|
|
|
|
|
static void twofish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
|
|
|
{
|
|
|
- twofish_dec_blk(tfm, dst, src);
|
|
|
+ twofish_dec_blk(crypto_tfm_ctx(tfm), dst, src);
|
|
|
}
|
|
|
|
|
|
static struct crypto_alg alg = {
|