aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/hmac.c
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-10-22 13:40:16 -0400
committerJens Axboe <jens.axboe@oracle.com>2007-10-22 13:40:16 -0400
commit78c2f0b8c285c5305b3e67b0595200541e15eb43 (patch)
tree6537a046641e9a3dba3f4735b42d7f04e60e29f8 /crypto/hmac.c
parent9b61764bcb4360e04386f0415a01da8271631004 (diff)
[SG] Update crypto/ to sg helpers
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'crypto/hmac.c')
-rw-r--r--crypto/hmac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/hmac.c b/crypto/hmac.c
index 8802fb6dd5a6..e4eb6ac53b5c 100644
--- a/crypto/hmac.c
+++ b/crypto/hmac.c
@@ -159,7 +159,8 @@ static int hmac_digest(struct hash_desc *pdesc, struct scatterlist *sg,
159 desc.flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; 159 desc.flags = pdesc->flags & CRYPTO_TFM_REQ_MAY_SLEEP;
160 160
161 sg_set_buf(sg1, ipad, bs); 161 sg_set_buf(sg1, ipad, bs);
162 sg1[1].page = (void *)sg; 162
163 sg_set_page(&sg[1], (void *) sg);
163 sg1[1].length = 0; 164 sg1[1].length = 0;
164 sg_set_buf(sg2, opad, bs + ds); 165 sg_set_buf(sg2, opad, bs + ds);
165 166