提交 f32824d8 编写于 作者: J J. Bruce Fields - unquoted 提交者: Trond Myklebust

spkm3: fix spkm3's use of hmac

I think I botched an attempt to keep an spkm3 patch up-to-date with a recent
crypto api change.
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 08efa202
......@@ -152,7 +152,7 @@ make_spkm3_checksum(s32 cksumtype, struct xdr_netobj *key, char *header,
switch (cksumtype) {
case CKSUMTYPE_HMAC_MD5:
cksumname = "md5";
cksumname = "hmac(md5)";
break;
default:
dprintk("RPC: spkm3_make_checksum:"
......@@ -173,7 +173,7 @@ make_spkm3_checksum(s32 cksumtype, struct xdr_netobj *key, char *header,
goto out;
sg_set_buf(sg, header, hdrlen);
crypto_hash_update(&desc, sg, 1);
crypto_hash_update(&desc, sg, sg->length);
xdr_process_buf(body, body_offset, body->len - body_offset,
spkm3_checksummer, &desc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册