Jan pointed this out to me and fixed it in the fallback code for s390
and now I remembered that this could also be fixed here :)
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 68be7d0..c7d5ed0 100644
--- a/drivers/crypto/geode-aes.c
+++ b/drivers/crypto/geode-aes.c
@@ -187,6 +187,9 @@ static int fallback_blk_dec(struct blkcipher_desc *desc,
struct crypto_blkcipher *tfm;
struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm);
+ memcpy(crypto_blkcipher_crt(op->fallback.blk)->iv, desc->info,
+ AES_BLOCK_SIZE);
+
tfm = desc->tfm;
desc->tfm = op->fallback.blk;
@@ -203,6 +206,9 @@ static int fallback_blk_enc(struct blkcipher_desc *desc,
struct crypto_blkcipher *tfm;
struct geode_aes_op *op = crypto_blkcipher_ctx(desc->tfm);
+ memcpy(crypto_blkcipher_crt(op->fallback.blk)->iv, desc->info,
+ AES_BLOCK_SIZE);
+
tfm = desc->tfm;
desc->tfm = op->fallback.blk;
--
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