summaryrefslogtreecommitdiffstats
path: root/crypto/des/xcbc_enc.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2001-07-30 17:46:22 +0000
committerBen Laurie <ben@openssl.org>2001-07-30 17:46:22 +0000
commit3ba5d1cf2eb6ef28ac5f6d9f3d28020d00c5be50 (patch)
tree73d3b6e7e2ee0ce832943a1e080501b8a96c40d6 /crypto/des/xcbc_enc.c
parentbe2e2c32972e421ecc78bb79b502cb9d76d0c391 (diff)
Make EVPs allocate context memory, thus making them extensible. Rationalise
DES's keyschedules. I know these two should be separate, and I'll back out the DES changes if they are deemed to be an error. Note that there is a memory leak lurking in SSL somewhere in this version.
Diffstat (limited to 'crypto/des/xcbc_enc.c')
-rw-r--r--crypto/des/xcbc_enc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/des/xcbc_enc.c b/crypto/des/xcbc_enc.c
index ccfede13ac..bb910a080d 100644
--- a/crypto/des/xcbc_enc.c
+++ b/crypto/des/xcbc_enc.c
@@ -108,8 +108,9 @@ void des_xwhite_in2out(const_des_cblock *des_key, const_des_cblock *in_white,
}
void des_xcbc_encrypt(const unsigned char *in, unsigned char *out,
- long length, des_key_schedule schedule, des_cblock *ivec,
- const_des_cblock *inw, const_des_cblock *outw, int enc)
+ long length, des_key_schedule *schedule,
+ des_cblock *ivec, const_des_cblock *inw,
+ const_des_cblock *outw, int enc)
{
register DES_LONG tin0,tin1;
register DES_LONG tout0,tout1,xor0,xor1;