(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
This commit is contained in:
Love Hörnquist Åstrand
2005-07-09 01:35:31 +00:00
parent ce99b902fb
commit 1f25cc530f

View File

@@ -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;