Re: [PATCH] crypto: cts wrapper mode errata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Kevin Coffman | 2008-03-31 14:39:13 [-0400]:

>This patch fixes a couple of minor issues found by J. Bruce Fields
>while reviewing with the CTS mode patch already applied.
>
There is no functional change in your patch. Did you forget something
or is this on purpose? I assume "a couple of minor issues" is > 1 :)

>---
>
> crypto/cts.c |    6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
>diff --git a/crypto/cts.c b/crypto/cts.c
>index 6fe968a..c4e70bf 100644
>--- a/crypto/cts.c
>+++ b/crypto/cts.c
>@@ -201,7 +201,7 @@ static int cts_cbc_decrypt(struct crypto_cts_ctx *ctx,
> 	sg_set_buf(&sgdst[0], d, bsize);
> 	err = crypto_blkcipher_decrypt_iv(&lcldesc, sgdst, sgsrc, bsize);
> 
>-	/* XXX xor with previous block ?? */
>+	/* XOR with previous block */
> 	crypto_xor(d, desc->info, bsize);
> 
> 	scatterwalk_map_and_copy(d, dst, offset, nbytes, 1);

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux