summaryrefslogtreecommitdiff
path: root/crypto/hmac.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-05 20:59:25 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2008-01-11 08:16:33 +1100
commitcf51b44c8b86c241584aefaa1f612cbe8f75123f (patch)
treedb83ddc0277d6d69190516f40675670cd9b46526 /crypto/hmac.c
parent35e87430ba6ed71cee3f14210ae5301e9a7cc49c (diff)
downloadlinux-crypto-cf51b44c8b86c241584aefaa1f612cbe8f75123f.tar.gz
linux-crypto-cf51b44c8b86c241584aefaa1f612cbe8f75123f.zip
[CRYPTO] scatterwalk: Restore custom sg chaining for now
Unfortunately the generic chaining hasn't been ported to all architectures yet, and notably not s390. So this patch restores the chainging that we've been using previously which does work everywhere. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
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 34c3706d..a1d016a5 100644
--- a/crypto/hmac.c
+++ b/crypto/hmac.c
@@ -17,6 +17,7 @@
*/
#include <crypto/algapi.h>
+#include <crypto/scatterwalk.h>
#include <linux/err.h>
#include <linux/init.h>
#include <linux/kernel.h>
@@ -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_chain(sg1, 2, sg);
+ scatterwalk_sg_chain(sg1, 2, sg);
sg_init_table(sg2, 1);
sg_set_buf(sg2, opad, bs + ds);