[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] [PATCH] crypto/arc4: convert this stream cipher into a block cipher
- From: Sebastian Andrzej Siewior <sebastian breakpoint cc>
- To: Herbert Xu <herbert gondor apana org au>
- Cc: dm-devel redhat com, Mikulas Patocka <mpatocka redhat com>, linux-crypto vger kernel org, agk redhat com, mbroz redhat com
- Subject: Re: [dm-devel] [PATCH] crypto/arc4: convert this stream cipher into a block cipher
- Date: Sun, 14 Feb 2010 21:42:54 +0100
* Sebastian Andrzej Siewior | 2010-02-12 09:42:28 [+0100]:
>+static void arc4_ivsetup(struct arc4_ctx *ctx, u8 *iv)
> {
>- struct arc4_ctx *ctx = crypto_tfm_ctx(tfm);
>+ if (unlikely(!ctx->new_key))
That should be likely(). Do you want me resend the whole thing? Haven't
noticed anything else :)
>+ return;
>+ memcpy(iv, &ctx->iv, sizeof(ctx->iv));
>+ ctx->new_key = 0;
>+}
Sebastian
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]