crypto: x86/glue_helper - fix storing of new IV in CBC encryption
Subsystems (2)
PATCH 1/1 crypto: x86/glue_helper - fix storing of new IV in CBC encryption
Glue_helper incorrectly XORs new IV over old IV at end of CBC encryption function when it should store. This causes CBC encryption to give incorrect output on multi-page encryption requests.
Signed-off-by Jussi Kivilinna <[email protected]>
--- arch/x86/crypto/glue_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/crypto/glue_helper.c +1 -1
@@ -110,7 +110,7 @@ static unsigned int __glue_cbc_encrypt_128bit(const common_glue_func_t fn, nbytes -= bsize; }while (nbytes >= bsize); -u128_xor ((u128 *)walk->iv, (u128 *)walk->iv, iv); + *(u128 *)walk->iv = *iv;return nbytes; }
Herbert Xu
maintainerQuoted 5 lines · Jussi Kivilinna
Glue_helperincorrectly XORs new IV over old IV at end of CBC encryption function when it should store. This causes CBC encryption to give incorrect output on multi-page encryption requests.Signed-off-by Jussi Kivilinna <[email protected]>
Patch applied to crypto.
Thanks!
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt