From c54198be3feb7c98aa632be7d4bf56e6002cfffc Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 30 Nov 2009 16:13:50 +0000 Subject: [PATCH] In the des enc_provider decrypt_iov function, count header blocks as 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/crypto/builtin/enc_provider/des.c b/src/lib/crypto/builtin/enc_provider/des.c index 6a1ca8db5..e268a20f8 100644 --- a/src/lib/crypto/builtin/enc_provider/des.c +++ b/src/lib/crypto/builtin/enc_provider/des.c @@ -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; } -- 2.26.2