diff options
author | J. Bruce Fields - unquoted <bfields@snoopy.citi.umich.edu> | 2007-02-10 01:33:25 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-05-02 10:36:27 -0400 |
commit | f32824d8ca9d3f84613ae2422070cc5469fe9e91 (patch) | |
tree | 1b3af4f28f76aebfb57e699b374d15f735abba9f /net/sunrpc/auth_gss | |
parent | 08efa202eb398ce7939885a4a01df370fd392068 (diff) |
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: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/auth_gss')
-rw-r--r-- | net/sunrpc/auth_gss/gss_spkm3_seal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth_gss/gss_spkm3_seal.c b/net/sunrpc/auth_gss/gss_spkm3_seal.c index 104cbf4f769f..36c3bae0c42b 100644 --- a/net/sunrpc/auth_gss/gss_spkm3_seal.c +++ b/net/sunrpc/auth_gss/gss_spkm3_seal.c | |||
@@ -152,7 +152,7 @@ make_spkm3_checksum(s32 cksumtype, struct xdr_netobj *key, char *header, | |||
152 | 152 | ||
153 | switch (cksumtype) { | 153 | switch (cksumtype) { |
154 | case CKSUMTYPE_HMAC_MD5: | 154 | case CKSUMTYPE_HMAC_MD5: |
155 | cksumname = "md5"; | 155 | cksumname = "hmac(md5)"; |
156 | break; | 156 | break; |
157 | default: | 157 | default: |
158 | dprintk("RPC: spkm3_make_checksum:" | 158 | dprintk("RPC: spkm3_make_checksum:" |
@@ -173,7 +173,7 @@ make_spkm3_checksum(s32 cksumtype, struct xdr_netobj *key, char *header, | |||
173 | goto out; | 173 | goto out; |
174 | 174 | ||
175 | sg_set_buf(sg, header, hdrlen); | 175 | sg_set_buf(sg, header, hdrlen); |
176 | crypto_hash_update(&desc, sg, 1); | 176 | crypto_hash_update(&desc, sg, sg->length); |
177 | 177 | ||
178 | xdr_process_buf(body, body_offset, body->len - body_offset, | 178 | xdr_process_buf(body, body_offset, body->len - body_offset, |
179 | spkm3_checksummer, &desc); | 179 | spkm3_checksummer, &desc); |