Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347342
b: refs/heads/master
c: b3a3794
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Dec 19, 2012
1 parent a124477 commit da2d88d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce6889515d5d481a5bd8ce5913dfed18f08310ea
refs/heads/master: b3a37947074fa0a488d6c7ede58125b2278ab4e8
6 changes: 6 additions & 0 deletions trunk/arch/sparc/crypto/des_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ static int __ecb_crypt(struct blkcipher_desc *desc,

blkcipher_walk_init(&walk, dst, src, nbytes);
err = blkcipher_walk_virt(desc, &walk);
desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;

if (encrypt)
des_sparc64_load_keys(&ctx->encrypt_expkey[0]);
Expand Down Expand Up @@ -147,6 +148,7 @@ static int cbc_encrypt(struct blkcipher_desc *desc,

blkcipher_walk_init(&walk, dst, src, nbytes);
err = blkcipher_walk_virt(desc, &walk);
desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;

des_sparc64_load_keys(&ctx->encrypt_expkey[0]);
while ((nbytes = walk.nbytes)) {
Expand Down Expand Up @@ -177,6 +179,7 @@ static int cbc_decrypt(struct blkcipher_desc *desc,

blkcipher_walk_init(&walk, dst, src, nbytes);
err = blkcipher_walk_virt(desc, &walk);
desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;

des_sparc64_load_keys(&ctx->decrypt_expkey[0]);
while ((nbytes = walk.nbytes)) {
Expand Down Expand Up @@ -266,6 +269,7 @@ static int __ecb3_crypt(struct blkcipher_desc *desc,

blkcipher_walk_init(&walk, dst, src, nbytes);
err = blkcipher_walk_virt(desc, &walk);
desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;

if (encrypt)
K = &ctx->encrypt_expkey[0];
Expand Down Expand Up @@ -317,6 +321,7 @@ static int cbc3_encrypt(struct blkcipher_desc *desc,

blkcipher_walk_init(&walk, dst, src, nbytes);
err = blkcipher_walk_virt(desc, &walk);
desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;

K = &ctx->encrypt_expkey[0];
des3_ede_sparc64_load_keys(K);
Expand Down Expand Up @@ -352,6 +357,7 @@ static int cbc3_decrypt(struct blkcipher_desc *desc,

blkcipher_walk_init(&walk, dst, src, nbytes);
err = blkcipher_walk_virt(desc, &walk);
desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP;

K = &ctx->decrypt_expkey[0];
des3_ede_sparc64_load_keys(K);
Expand Down

0 comments on commit da2d88d

Please sign in to comment.