This time, get it right.
[openssl.git] / crypto / mdc2 / mdc2dgst.c
index f4dfcf9bdccbf7577482fd16cbf257e5de2cdebe..2a086c061248d8d333a693d075b1bae1a6c86a93 100644 (file)
@@ -1,5 +1,5 @@
 /* crypto/mdc2/mdc2dgst.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
@@ -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);