(krb5_get_wrapped_length): the padding should be done after having

added confounder and checksum


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8168 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-04-11 02:12:29 +00:00
parent c44259b5c3
commit 7046d9605a

View File

@@ -2278,8 +2278,9 @@ krb5_get_wrapped_length (krb5_context context,
size_t blocksize = et->blocksize;
size_t res;
res = (data_len + blocksize - 1) / blocksize * blocksize;
res = res + et->confoundersize + et->cksumtype->checksumsize;
res = et->confoundersize + data_len;
res = (res + blocksize - 1) / blocksize * blocksize;
res += et->cksumtype->checksumsize;
return res;
}