svn rev #21689: branches/mskrb-integ/src/lib/crypto/des/

hartmans@MIT.EDU hartmans at MIT.EDU
Sat Jan 3 16:43:19 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=21689
Commit By: hartmans
Log Message:
On decrypt, the ivec should be chained from ciphertext
not output


Changed Files:
U   branches/mskrb-integ/src/lib/crypto/des/d3_aead.c
Modified: branches/mskrb-integ/src/lib/crypto/des/d3_aead.c
===================================================================
--- branches/mskrb-integ/src/lib/crypto/des/d3_aead.c	2009-01-03 21:43:14 UTC (rev 21688)
+++ branches/mskrb-integ/src/lib/crypto/des/d3_aead.c	2009-01-03 21:43:18 UTC (rev 21689)
@@ -199,6 +199,9 @@
 	krb5int_c_iov_put_block(data, num_data, oblock, MIT_DES_BLOCK_LENGTH, &output_pos);
     }
 
-    if (ivec != NULL)
-	memcpy(ivec, oblock, MIT_DES_BLOCK_LENGTH);
+    if (ivec != NULL) {
+	op = ivec;
+	PUT_HALF_BLOCK(ocipherl,op);
+	PUT_HALF_BLOCK(ocipherr, op);
+    }
 }




More information about the cvs-krb5 mailing list