From 659f200b6101eb918a0a8fc18d5d736ddfb85ee5 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 13 Feb 1991 15:57:48 +0000 Subject: [PATCH] include count in the output git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1689 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/md4/md4crypto.c | 6 +++++- src/lib/crypto/md4/md4glue.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lib/crypto/md4/md4crypto.c b/src/lib/crypto/md4/md4crypto.c index fc17ee647..d11e93662 100644 --- a/src/lib/crypto/md4/md4crypto.c +++ b/src/lib/crypto/md4/md4crypto.c @@ -3,6 +3,7 @@ * $Author$ * * Copyright 1991 by the Massachusetts Institute of Technology. + * All Rights Reserved. * * For copying and distribution information, please see the file * . @@ -58,6 +59,9 @@ krb5_checksum *outcksum; for (j = 0; j < 32; j += 8) *output++ = (working.buffer[i] >> j) & 0xFF; + for (i = 0; i < 8; i++) + *output++ = working.count[i]; + keyblock.length = seed_length; keyblock.contents = (krb5_octet *)seed; keyblock.keytype = KEYTYPE_DES; @@ -81,7 +85,7 @@ krb5_checksum *outcksum; krb5_checksum_entry rsa_md4_des_cksumtable_entry = { md4_crypto_sum_func, - RSA_MD4_CKSUM_LENGTH, /* CRC-32 is 4 octets */ + RSA_MD4_DES_CKSUM_LENGTH, 1, /* is collision proof */ 1, /* uses key */ }; diff --git a/src/lib/crypto/md4/md4glue.c b/src/lib/crypto/md4/md4glue.c index 93bcf30d3..b0576f125 100644 --- a/src/lib/crypto/md4/md4glue.c +++ b/src/lib/crypto/md4/md4glue.c @@ -2,7 +2,8 @@ * $Source$ * $Author$ * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990,1991 by the Massachusetts Institute of Technology. + * All Rights Reserved. * * For copying and distribution information, please see the file * . @@ -51,6 +52,9 @@ krb5_checksum *outcksum; for (j = 0; j < 32; j += 8) *output++ = (working.buffer[i] >> j) & 0xFF; + for (i = 0; i < 8; i++) + *output++ = working.count[i]; + return 0; } -- 2.26.2