Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72601
b: refs/heads/master
c: a676772
h: refs/heads/master
i:
  72599: 5027b59
v: v3
  • Loading branch information
David S. Miller committed Oct 26, 2007
1 parent 6dfc6e6 commit 2010655
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 564262c1f0b0f0ce852ecd7f60672f79985595ee
refs/heads/master: a6767721a563acb172c73f693fcf719b3b3d6716
6 changes: 3 additions & 3 deletions trunk/crypto/hmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int hmac_setkey(struct crypto_hash *parent,
desc.tfm = tfm;
desc.flags = crypto_hash_get_flags(parent);
desc.flags &= CRYPTO_TFM_REQ_MAY_SLEEP;
sg_set_buf(&tmp, inkey, keylen);
sg_init_one(&tmp, inkey, keylen);

err = crypto_hash_digest(&desc, &tmp, keylen, digest);
if (err)
Expand Down Expand Up @@ -96,7 +96,7 @@ static int hmac_init(struct hash_desc *pdesc)

desc.tfm = ctx->child;
desc.flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP;
sg_set_buf(&tmp, ipad, bs);
sg_init_one(&tmp, ipad, bs);

err = crypto_hash_init(&desc);
if (unlikely(err))
Expand Down Expand Up @@ -131,7 +131,7 @@ static int hmac_final(struct hash_desc *pdesc, u8 *out)

desc.tfm = ctx->child;
desc.flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP;
sg_set_buf(&tmp, opad, bs + ds);
sg_init_one(&tmp, opad, bs + ds);

err = crypto_hash_final(&desc, digest);
if (unlikely(err))
Expand Down

0 comments on commit 2010655

Please sign in to comment.