[PATCH] crypto: cts wrapper mode errata

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

 



This patch fixes a couple of minor issues found by J. Bruce Fields
while reviewing with the CTS mode patch already applied.

It also changes the license to "Dual BSD/GPL".

Signed-off-by: Kevin Coffman <kwc@xxxxxxxxxxxxxx>
---

 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);
@@ -343,5 +343,5 @@ static void __exit crypto_cts_module_exit(void)
 module_init(crypto_cts_module_init);
 module_exit(crypto_cts_module_exit);
 
-MODULE_LICENSE("GPL");
-MODULE_DESCRIPTION("CTS-CBC) CipherText Stealing for CBC");
+MODULE_LICENSE("Dual BSD/GPL");
+MODULE_DESCRIPTION("CTS-CBC CipherText Stealing for CBC");

--
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