X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=crypto%2Farc4.c;fp=crypto%2Farc4.c;h=9efbcaae88a13e19c674915c91a05df6cee4301e;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=5edc6a65b987a01fb1ab89b71a363afd49f8fac2;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/crypto/arc4.c b/crypto/arc4.c index 5edc6a65b..9efbcaae8 100644 --- a/crypto/arc4.c +++ b/crypto/arc4.c @@ -24,10 +24,9 @@ struct arc4_ctx { u8 x, y; }; -static int arc4_set_key(struct crypto_tfm *tfm, const u8 *in_key, - unsigned int key_len, u32 *flags) +static int arc4_set_key(void *ctx_arg, const u8 *in_key, unsigned int key_len, u32 *flags) { - struct arc4_ctx *ctx = crypto_tfm_ctx(tfm); + struct arc4_ctx *ctx = ctx_arg; int i, j = 0, k = 0; ctx->x = 1; @@ -49,9 +48,9 @@ static int arc4_set_key(struct crypto_tfm *tfm, const u8 *in_key, return 0; } -static void arc4_crypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) +static void arc4_crypt(void *ctx_arg, u8 *out, const u8 *in) { - struct arc4_ctx *ctx = crypto_tfm_ctx(tfm); + struct arc4_ctx *ctx = ctx_arg; u8 *const S = ctx->S; u8 x = ctx->x;