Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75954
b: refs/heads/master
c: 2d74d40
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Siewior authored and Herbert Xu committed Jan 10, 2008
1 parent 372214c commit dbb1632
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fdc520aa693d462f4958339534a3b596f95795b7
refs/heads/master: 2d74d405fc5ea78b20a4a2efd24201db424e07b1
10 changes: 2 additions & 8 deletions trunk/arch/s390/crypto/aes_s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,13 +234,10 @@ static int fallback_blk_dec(struct blkcipher_desc *desc,
struct crypto_blkcipher *tfm;
struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm);

memcpy(crypto_blkcipher_crt(sctx->fallback.blk)->iv, desc->info,
AES_BLOCK_SIZE);

tfm = desc->tfm;
desc->tfm = sctx->fallback.blk;

ret = crypto_blkcipher_decrypt(desc, dst, src, nbytes);
ret = crypto_blkcipher_decrypt_iv(desc, dst, src, nbytes);

desc->tfm = tfm;
return ret;
Expand All @@ -254,13 +251,10 @@ static int fallback_blk_enc(struct blkcipher_desc *desc,
struct crypto_blkcipher *tfm;
struct s390_aes_ctx *sctx = crypto_blkcipher_ctx(desc->tfm);

memcpy(crypto_blkcipher_crt(sctx->fallback.blk)->iv, desc->info,
AES_BLOCK_SIZE);

tfm = desc->tfm;
desc->tfm = sctx->fallback.blk;

ret = crypto_blkcipher_encrypt(desc, dst, src, nbytes);
ret = crypto_blkcipher_encrypt_iv(desc, dst, src, nbytes);

desc->tfm = tfm;
return ret;
Expand Down

0 comments on commit dbb1632

Please sign in to comment.