summaryrefslogtreecommitdiff
path: root/crypto/mdc2/mdc2dgst.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/mdc2/mdc2dgst.c')
-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);