Set output length correctly
authorSam Hartman <hartmans@mit.edu>
Wed, 7 Nov 2001 22:01:24 +0000 (22:01 +0000)
committerSam Hartman <hartmans@mit.edu>
Wed, 7 Nov 2001 22:01:24 +0000 (22:01 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13964 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/arcfour/ChangeLog
src/lib/crypto/arcfour/arcfour.c

index d511f8f007a0edf4418e7e97a56730fb91903b7a..38ff8bbd6361d31b01da91868ca71d8587a6225f 100644 (file)
@@ -1,3 +1,7 @@
+2001-11-07  Sam Hartman  <hartmans@mit.edu>
+
+       * arcfour.c (krb5_arcfour_encrypt): Set output length
+
 2001-11-06  Sam Hartman  <hartmans@mit.edu>
 
        * arcfour-int.h: Structure for arcfour cipher state
index 66c0bd3355e2c52cf1d0b585667028052f2fa4f6..e038e954225288501c096377e7aaa26a355b6391 100644 (file)
@@ -139,6 +139,7 @@ krb5_arcfour_encrypt(enc, hash, key, usage, ivec, input, output)
   ciphertext.data=output->data+hashsize;
   confounder.length=CONFOUNDERLENGTH;
   confounder.data=plaintext.data;
+  output->length = plaintext.length+hashsize;
   
   /* begin the encryption, computer K1 */
   ms_usage=krb5int_arcfour_translate_usage(usage);