aboutsummaryrefslogtreecommitdiff
path: root/src/lib/crypto/arcfour/arcfour_aead.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/crypto/arcfour/arcfour_aead.c')
-rw-r--r--src/lib/crypto/arcfour/arcfour_aead.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/crypto/arcfour/arcfour_aead.c b/src/lib/crypto/arcfour/arcfour_aead.c
index 9b74172..e9398f4 100644
--- a/src/lib/crypto/arcfour/arcfour_aead.c
+++ b/src/lib/crypto/arcfour/arcfour_aead.c
@@ -41,12 +41,14 @@ krb5int_arcfour_crypto_length(const struct krb5_aead_provider *aead,
{
switch (type) {
case KRB5_CRYPTO_TYPE_HEADER:
- *length = CONFOUNDERLENGTH;
+ *length = CONFOUNDERLENGTH + hash->hashsize;
break;
case KRB5_CRYPTO_TYPE_PADDING:
*length = 0;
break;
case KRB5_CRYPTO_TYPE_TRAILER:
+ *length = 0;
+ break;
case KRB5_CRYPTO_TYPE_CHECKSUM:
*length = hash->hashsize;
break;