This is required for one or two crypto users in tree which
chain the IV.
Signed-off-by: Sebastian Siewior <[EMAIL PROTECTED]>
---
drivers/crypto/geode-aes.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/crypto/geode-aes.c b/drivers/crypto/geode-aes.c
index c7d5ed0..ff3d770 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -195,6 +195,9 @@ static int fallback_blk_dec(struct blkcipher_desc *desc,
ret = crypto_blkcipher_decrypt(desc, dst, src, nbytes);
+ memcpy(desc->info, crypto_blkcipher_crt(op->fallback.blk)->iv,
+ AES_BLOCK_SIZE);
+
desc->tfm = tfm;
return ret;
}
@@ -214,6 +217,9 @@ static int fallback_blk_enc(struct blkcipher_desc *desc,
ret = crypto_blkcipher_encrypt(desc, dst, src, nbytes);
+ memcpy(desc->info, crypto_blkcipher_crt(op->fallback.blk)->iv,
+ AES_BLOCK_SIZE);
+
desc->tfm = tfm;
return ret;
}
--
1.5.3.4
-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html