summaryrefslogtreecommitdiffstats
path: root/crypto/evp/e_xcbc_d.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-02-13 18:52:38 +0000
committerBen Laurie <ben@openssl.org>1999-02-13 18:52:38 +0000
commit4e31df2cd73dbb659fd8a6eca6270fac661c072d (patch)
treee27cb10012ceeaf8dd433b5cf12b6fd7e73fdb8a /crypto/evp/e_xcbc_d.c
parente4119b931172a6a28e2ecb65ef41c6f23b89d09c (diff)
Fix ghastly DES declarations, and all consequential warnings.
Diffstat (limited to 'crypto/evp/e_xcbc_d.c')
-rw-r--r--crypto/evp/e_xcbc_d.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/crypto/evp/e_xcbc_d.c b/crypto/evp/e_xcbc_d.c
index 0d7fda0c47..b0bae80970 100644
--- a/crypto/evp/e_xcbc_d.c
+++ b/crypto/evp/e_xcbc_d.c
@@ -100,7 +100,7 @@ int enc;
memcpy(&(ctx->iv[0]),&(ctx->oiv[0]),8);
if (key != NULL)
{
- des_set_key((des_cblock *)key,ctx->c.desx_cbc.ks);
+ des_set_key(key,ctx->c.desx_cbc.ks);
memcpy(&(ctx->c.desx_cbc.inw[0]),&(key[8]),8);
memcpy(&(ctx->c.desx_cbc.outw[0]),&(key[16]),8);
}
@@ -112,11 +112,9 @@ unsigned char *out;
unsigned char *in;
unsigned int inl;
{
- des_xcbc_encrypt(
- (des_cblock *)in,(des_cblock *)out,
- (long)inl, ctx->c.desx_cbc.ks,
- (des_cblock *)&(ctx->iv[0]),
- (des_cblock *)&(ctx->c.desx_cbc.inw[0]),
- (des_cblock *)&(ctx->c.desx_cbc.outw[0]),
+ des_xcbc_encrypt(in,out,inl,ctx->c.desx_cbc.ks,
+ &(ctx->iv[0]),
+ &(ctx->c.desx_cbc.inw[0]),
+ &(ctx->c.desx_cbc.outw[0]),
ctx->encrypt);
}