diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-11-15 12:08:45 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-01-11 08:16:14 +1100 |
commit | e1831a52fbacad9aa2bcc90636f2a8e03584d90c (patch) | |
tree | 1c1ac48f05e4568ddbed9fcc4aa258b4f6e3df64 /crypto/hmac.c | |
parent | b8803214ef1c505b448dce93679c6a01b2ed66f6 (diff) | |
download | linux-crypto-e1831a52fbacad9aa2bcc90636f2a8e03584d90c.tar.gz linux-crypto-e1831a52fbacad9aa2bcc90636f2a8e03584d90c.zip |
[CRYPTO] scatterwalk: Use generic scatterlist chaining
This patch converts the crypto scatterwalk code to use the generic
scatterlist chaining rather the version specific to crypto.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/hmac.c')
-rw-r--r-- | crypto/hmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/hmac.c b/crypto/hmac.c index 0f05be76..34c3706d 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c @@ -160,7 +160,7 @@ static int hmac_digest(struct hash_desc *pdesc, struct scatterlist *sg, sg_init_table(sg1, 2); sg_set_buf(sg1, ipad, bs); - sg_set_page(&sg1[1], (void *) sg, 0, 0); + sg_chain(sg1, 2, sg); sg_init_table(sg2, 1); sg_set_buf(sg2, opad, bs + ds); |