From 1f25cc530fc9ac33b8f4cdc574300ed98103677e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 9 Jul 2005 01:35:31 +0000 Subject: [PATCH] (wrapped_length): the underived encrypted types checksum are all unkeyed (matches the code in encrypt_internal() and encrypt_internal_special()) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15598 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/crypto.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/krb5/crypto.c b/lib/krb5/crypto.c index eb5c231bd..703a791f8 100644 --- a/lib/krb5/crypto.c +++ b/lib/krb5/crypto.c @@ -4228,14 +4228,9 @@ wrapped_length (krb5_context context, { struct encryption_type *et = crypto->et; size_t padsize = et->padsize; - size_t checksumsize; + size_t checksumsize = CHECKSUMSIZE(et->checksum); size_t res; - if (et->keyed_checksum) - checksumsize = et->keyed_checksum->checksumsize; - else - checksumsize = et->checksum->checksumsize; - res = et->confoundersize + checksumsize + data_len; res = (res + padsize - 1) / padsize * padsize; return res;