In the des enc_provider decrypt_iov function, count header blocks as
authorGreg Hudson <ghudson@mit.edu>
Mon, 30 Nov 2009 16:13:50 +0000 (16:13 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 30 Nov 2009 16:13:50 +0000 (16:13 +0000)
well as data and padding blocks when checking for correctly padded
input.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23387 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/builtin/enc_provider/des.c

index 6a1ca8db50d28f03f7b19f7aeb9a04c6cf6b4bd3..e268a20f8de953645cb2d42d22499ffd0b6100c3 100644 (file)
@@ -101,7 +101,7 @@ k5_des_docrypt_iov(krb5_key key, const krb5_data *ivec,
     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;
     }