Really add the EVP and all of the DES changes.
[openssl.git] / crypto / mdc2 / mdc2dgst.c
index bf67c03ffc94fb60cc08d2aaf1801e4b3d61d28f..88dd4e250b6018e4c6b20f87dd587eedd8a84e06 100644 (file)
@@ -137,12 +137,12 @@ static void mdc2_body(MDC2_CTX *c, const unsigned char *in, unsigned int len)
                c->hh[0]=(c->hh[0]&0x9f)|0x20;
 
                des_set_odd_parity(&c->h);
-               des_set_key_unchecked(&c->h,k);
-               des_encrypt1(d,k,1);
+               des_set_key_unchecked(&c->h,&k);
+               des_encrypt1(d,&k,1);
 
                des_set_odd_parity(&c->hh);
-               des_set_key_unchecked(&c->hh,k);
-               des_encrypt1(dd,k,1);
+               des_set_key_unchecked(&c->hh,&k);
+               des_encrypt1(dd,&k,1);
 
                ttin0=tin0^dd[0];
                ttin1=tin1^dd[1];