From: Greg Hudson Date: Thu, 10 Dec 2009 19:04:47 +0000 (+0000) Subject: Add comments to make it slightly clearer how X-Git-Tag: krb5-1.8-alpha1~74 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fbaa3d56764545d916cf163d620f2a4d71f24a98;p=krb5.git Add comments to make it slightly clearer how krb5int_confounder_checksum works. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23463 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/krb/checksum/confounder.c b/src/lib/crypto/krb/checksum/confounder.c index 73d69e32a..e8c6bd9c4 100644 --- a/src/lib/crypto/krb/checksum/confounder.c +++ b/src/lib/crypto/krb/checksum/confounder.c @@ -69,6 +69,7 @@ krb5int_confounder_checksum(const struct krb5_cksumtypes *ctp, krb5_crypto_iov *hash_iov, iov; size_t blocksize = ctp->enc->block_size, hashsize = ctp->hash->hashsize; + /* Partition the output buffer into confounder and hash. */ conf = make_data(output->data, blocksize); hashval = make_data(output->data + blocksize, hashsize); @@ -92,7 +93,7 @@ krb5int_confounder_checksum(const struct krb5_cksumtypes *ctp, if (ret != 0) goto cleanup; - /* Encrypt the confounder and hash value. */ + /* Confounder and hash are in output buffer; encrypt them in place. */ iov.flags = KRB5_CRYPTO_TYPE_DATA; iov.data = *output; ret = ctp->enc->encrypt(xorkey, NULL, &iov, 1);