X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Fhmac.c;h=a1d016a50e7debd10f6b7030f44d598b6eccedb3;hb=acf63867ae06ef95eea7bf445ded2f05528a81b1;hp=0f05be769c346c71d6ed3a70228d947c4699e50f;hpb=14f7d720bb6cc60be8931ea1a0f547dc1e475b88;p=linux-2.6 diff --git a/crypto/hmac.c b/crypto/hmac.c index 0f05be769c..a1d016a50e 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c @@ -17,6 +17,7 @@ */ #include +#include #include #include #include @@ -160,7 +161,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); + scatterwalk_sg_chain(sg1, 2, sg); sg_init_table(sg2, 1); sg_set_buf(sg2, opad, bs + ds);