diff options
Diffstat (limited to 'crypto/hmac.c')
-rw-r--r-- | crypto/hmac.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/hmac.c b/crypto/hmac.c index e4eb6ac53b5c..6691981bda11 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c | |||
@@ -160,8 +160,7 @@ static int hmac_digest(struct hash_desc *pdesc, struct scatterlist *sg, | |||
160 | 160 | ||
161 | sg_set_buf(sg1, ipad, bs); | 161 | sg_set_buf(sg1, ipad, bs); |
162 | 162 | ||
163 | sg_set_page(&sg[1], (void *) sg); | 163 | sg_set_page(&sg[1], (void *) sg, 0, 0); |
164 | sg1[1].length = 0; | ||
165 | sg_set_buf(sg2, opad, bs + ds); | 164 | sg_set_buf(sg2, opad, bs + ds); |
166 | 165 | ||
167 | err = crypto_hash_digest(&desc, sg1, nbytes + bs, digest); | 166 | err = crypto_hash_digest(&desc, sg1, nbytes + bs, digest); |