Skip to content

Commit

Permalink
spkm3: fix spkm3's use of hmac
Browse files Browse the repository at this point in the history
I think I botched an attempt to keep an spkm3 patch up-to-date with a recent
crypto api change.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
J. Bruce Fields - unquoted authored and Trond Myklebust committed May 2, 2007
1 parent 08efa20 commit f32824d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/sunrpc/auth_gss/gss_spkm3_seal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand All @@ -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);
Expand Down

0 comments on commit f32824d

Please sign in to comment.