summaryrefslogtreecommitdiffstats
path: root/crypto/mdc2
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1998-12-21 11:00:56 +0000
committerRalf S. Engelschall <rse@openssl.org>1998-12-21 11:00:56 +0000
commitdfeab0689f69c0b4bd3480ffd37a9cacc2f17d9c (patch)
tree2f74e0cfd76a9e092548a9bf52e579aef984299b /crypto/mdc2
parent58964a492275ca9a59a0cd9c8155cb2491b4b909 (diff)
Import of old SSLeay release: SSLeay 0.9.1b (unreleased)SSLeay
Diffstat (limited to 'crypto/mdc2')
-rw-r--r--crypto/mdc2/mdc2dgst.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/mdc2/mdc2dgst.c b/crypto/mdc2/mdc2dgst.c
index 3f3d11a1a2..2a086c0612 100644
--- a/crypto/mdc2/mdc2dgst.c
+++ b/crypto/mdc2/mdc2dgst.c
@@ -150,9 +150,11 @@ unsigned int len;
(*h)[0]=((*h)[0]&0x9f)|0x40;
(*hh)[0]=((*hh)[0]&0x9f)|0x20;
+ des_set_odd_parity(h);
des_set_key(h,k);
des_encrypt((DES_LONG *)d,k,1);
+ des_set_odd_parity(hh);
des_set_key(hh,k);
des_encrypt((DES_LONG *)dd,k,1);