aboutsummaryrefslogtreecommitdiff
path: root/crypto/mdc2/mdc2dgst.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2001-07-30 23:57:25 +0000
committerBen Laurie <ben@openssl.org>2001-07-30 23:57:25 +0000
commitdbad169019598981174ff46c7a9bf58373b0e53a (patch)
treece8ca1188d5614648f24b03967785543f1edc8f5 /crypto/mdc2/mdc2dgst.c
parent3ba5d1cf2eb6ef28ac5f6d9f3d28020d00c5be50 (diff)
downloadopenssl-dbad169019598981174ff46c7a9bf58373b0e53a.zip
openssl-dbad169019598981174ff46c7a9bf58373b0e53a.tar.gz
openssl-dbad169019598981174ff46c7a9bf58373b0e53a.tar.bz2
Really add the EVP and all of the DES changes.
Diffstat (limited to 'crypto/mdc2/mdc2dgst.c')
-rw-r--r--crypto/mdc2/mdc2dgst.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/mdc2/mdc2dgst.c b/crypto/mdc2/mdc2dgst.c
index bf67c03..88dd4e2 100644
--- a/crypto/mdc2/mdc2dgst.c
+++ b/crypto/mdc2/mdc2dgst.c
@@ -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];