Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72594
b: refs/heads/master
c: 41fb285
h: refs/heads/master
v: v3
  • Loading branch information
Vlad Yasevich authored and David S. Miller committed Oct 26, 2007
1 parent a3c95a5 commit 6d12c1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 8a6911b12f7a835055f3236c6cf7073f79ba0730
refs/heads/master: 41fb285430e9cb57da624d838afef7b2fc67e276
4 changes: 3 additions & 1 deletion trunk/crypto/hmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,11 @@ static int hmac_digest(struct hash_desc *pdesc, struct scatterlist *sg,
desc.tfm = ctx->child;
desc.flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP;

sg_init_table(sg1, 2);
sg_set_buf(sg1, ipad, bs);
sg_set_page(&sg1[1], (void *) sg, 0, 0);

sg_set_page(&sg[1], (void *) sg, 0, 0);
sg_init_table(sg2, 1);
sg_set_buf(sg2, opad, bs + ds);

err = crypto_hash_digest(&desc, sg1, nbytes + bs, digest);
Expand Down

0 comments on commit 6d12c1f

Please sign in to comment.