svn rev #23463: trunk/src/lib/crypto/krb/checksum/

ghudson@MIT.EDU ghudson at MIT.EDU
Thu Dec 10 14:04:48 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=23463
Commit By: ghudson
Log Message:
Add comments to make it slightly clearer how
krb5int_confounder_checksum works.



Changed Files:
U   trunk/src/lib/crypto/krb/checksum/confounder.c
Modified: trunk/src/lib/crypto/krb/checksum/confounder.c
===================================================================
--- trunk/src/lib/crypto/krb/checksum/confounder.c	2009-12-10 17:10:10 UTC (rev 23462)
+++ trunk/src/lib/crypto/krb/checksum/confounder.c	2009-12-10 19:04:47 UTC (rev 23463)
@@ -69,6 +69,7 @@
     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 @@
     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);




More information about the cvs-krb5 mailing list