From: Ken Raeburn Date: Fri, 18 Apr 2003 02:30:28 +0000 (+0000) Subject: * dk_encrypt.c (krb5int_aes_dk_encrypt): Set output length properly X-Git-Tag: krb5-1.4-beta1~1013 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=79eda95ff1dc3a3934e7e2b7053c4d21bfe599e0;p=krb5.git * dk_encrypt.c (krb5int_aes_dk_encrypt): Set output length properly ticket: 1418 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15357 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/dk/ChangeLog b/src/lib/crypto/dk/ChangeLog index 4edfaabee..e30e76e88 100644 --- a/src/lib/crypto/dk/ChangeLog +++ b/src/lib/crypto/dk/ChangeLog @@ -1,3 +1,8 @@ +2003-04-17 Ken Raeburn + + * dk_encrypt.c (krb5int_aes_dk_encrypt): Set output length + properly. + 2003-04-13 Ken Raeburn * dk_decrypt.c (krb5_dk_decrypt_maybe_trunc_hmac): Renamed from diff --git a/src/lib/crypto/dk/dk_encrypt.c b/src/lib/crypto/dk/dk_encrypt.c index 7ff7d878f..9de05fc02 100644 --- a/src/lib/crypto/dk/dk_encrypt.c +++ b/src/lib/crypto/dk/dk_encrypt.c @@ -329,6 +329,8 @@ krb5int_aes_dk_encrypt(enc, hash, key, usage, ivec, input, output) goto cleanup; } + output->length = enclen; + /* update ivec */ if (cn != NULL) memcpy(ivec->data, cn, blocksize);