diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/crypto/md4/md4crypto.c | 6 | ||||
| -rw-r--r-- | 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 * <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; } |
