From: Sam Hartman Date: Wed, 7 Nov 2001 22:01:24 +0000 (+0000) Subject: Set output length correctly X-Git-Tag: krb5-1.3-alpha1~965 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c30218faafc6558046ad332f9c169f16ab387ce;p=krb5.git Set output length correctly git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13964 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/arcfour/ChangeLog b/src/lib/crypto/arcfour/ChangeLog index d511f8f00..38ff8bbd6 100644 --- a/src/lib/crypto/arcfour/ChangeLog +++ b/src/lib/crypto/arcfour/ChangeLog @@ -1,3 +1,7 @@ +2001-11-07 Sam Hartman + + * arcfour.c (krb5_arcfour_encrypt): Set output length + 2001-11-06 Sam Hartman * arcfour-int.h: Structure for arcfour cipher state diff --git a/src/lib/crypto/arcfour/arcfour.c b/src/lib/crypto/arcfour/arcfour.c index 66c0bd335..e038e9542 100644 --- a/src/lib/crypto/arcfour/arcfour.c +++ b/src/lib/crypto/arcfour/arcfour.c @@ -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);