summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1991-02-13 15:57:48 +0000
committerJohn Kohl <jtkohl@mit.edu>1991-02-13 15:57:48 +0000
commit659f200b6101eb918a0a8fc18d5d736ddfb85ee5 (patch)
tree4a5eed4871c1b86fee3f433ce7da441bd5e84ccf /src
parentab76ffa0d87e489c981a83340abd0fda9b34df99 (diff)
downloadkrb5-659f200b6101eb918a0a8fc18d5d736ddfb85ee5.tar.gz
krb5-659f200b6101eb918a0a8fc18d5d736ddfb85ee5.tar.xz
krb5-659f200b6101eb918a0a8fc18d5d736ddfb85ee5.zip
include count in the output
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1689 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/crypto/md4/md4crypto.c6
-rw-r--r--src/lib/crypto/md4/md4glue.c6
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
* <krb5/copyright.h>.
@@ -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
* <krb5/copyright.h>.
@@ -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;
}