* dk_encrypt.c (krb5int_aes_dk_encrypt): Set output length properly
authorKen Raeburn <raeburn@mit.edu>
Fri, 18 Apr 2003 02:30:28 +0000 (02:30 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 18 Apr 2003 02:30:28 +0000 (02:30 +0000)
ticket: 1418
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15357 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/dk/ChangeLog
src/lib/crypto/dk/dk_encrypt.c

index 4edfaabee3f064a2a7569468befd9ecd8ad033df..e30e76e883fff4631d9c460a27e1988a03609537 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-17  Ken Raeburn  <raeburn@mit.edu>
+
+       * dk_encrypt.c (krb5int_aes_dk_encrypt): Set output length
+       properly.
+
 2003-04-13  Ken Raeburn  <raeburn@mit.edu>
 
        * dk_decrypt.c (krb5_dk_decrypt_maybe_trunc_hmac): Renamed from
index 7ff7d878f4e2cf2b6272bfb132a8a0b6661cc796..9de05fc02bbcd1ea567a18834cab62610f5d16e0 100644 (file)
@@ -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);