svn rev #23387: trunk/src/lib/crypto/builtin/enc_provider/

ghudson@MIT.EDU ghudson at MIT.EDU
Mon Nov 30 11:13:50 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=23387
Commit By: ghudson
Log Message:
In the des enc_provider decrypt_iov function, count header blocks as
well as data and padding blocks when checking for correctly padded
input.



Changed Files:
U   trunk/src/lib/crypto/builtin/enc_provider/des.c
Modified: trunk/src/lib/crypto/builtin/enc_provider/des.c
===================================================================
--- trunk/src/lib/crypto/builtin/enc_provider/des.c	2009-11-30 16:12:36 UTC (rev 23386)
+++ trunk/src/lib/crypto/builtin/enc_provider/des.c	2009-11-30 16:13:50 UTC (rev 23387)
@@ -101,7 +101,7 @@
     for (i = 0; i < num_data; i++) {
         const krb5_crypto_iov *iov = &data[i];
 
-        if (ENCRYPT_DATA_IOV(iov))
+        if (ENCRYPT_IOV(iov))
             input_length += iov->data.length;
     }
 




More information about the cvs-krb5 mailing list