From 79eda95ff1dc3a3934e7e2b7053c4d21bfe599e0 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 18 Apr 2003 02:30:28 +0000 Subject: [PATCH] * 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 --- src/lib/crypto/dk/ChangeLog | 5 +++++ src/lib/crypto/dk/dk_encrypt.c | 2 ++ 2 files changed, 7 insertions(+) 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); -- 2.26.2