diff options
author | Greg Hudson <ghudson@mit.edu> | 2011-02-18 15:06:57 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2011-02-18 15:06:57 +0000 |
commit | 5f0f1d3160f729a0876e6c24a32aa448089fd461 (patch) | |
tree | a0942be081944c8fedb9073e876622386a628021 | |
parent | 76ebe5d07c1002b674eb1c4e3ab35f6001eec91c (diff) | |
download | krb5-5f0f1d3160f729a0876e6c24a32aa448089fd461.tar.gz krb5-5f0f1d3160f729a0876e6c24a32aa448089fd461.tar.xz krb5-5f0f1d3160f729a0876e6c24a32aa448089fd461.zip |
Fix a conceptual bug in r24639: the intermediate key container length
should be the hash's output size, not its block size. (The bug did
not show up in testing because it is harmless in practice; MD5 has a
larger block size than output size.)
ticket: 6869
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24641 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/crypto/krb/checksum/hmac_md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/crypto/krb/checksum/hmac_md5.c b/src/lib/crypto/krb/checksum/hmac_md5.c index f0ec604792..784b746f52 100644 --- a/src/lib/crypto/krb/checksum/hmac_md5.c +++ b/src/lib/crypto/krb/checksum/hmac_md5.c @@ -52,7 +52,7 @@ krb5_error_code krb5int_hmacmd5_checksum(const struct krb5_cksumtypes *ctp, return KRB5_BAD_ENCTYPE; if (ctp->ctype == CKSUMTYPE_HMAC_MD5_ARCFOUR) { /* Compute HMAC(key, "signaturekey\0") to get the signing key ks. */ - ret = alloc_data(&ds, ctp->hash->blocksize); + ret = alloc_data(&ds, ctp->hash->hashsize); if (ret != 0) goto cleanup; |