summaryrefslogtreecommitdiffstats
path: root/crypto/des/ofb_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/ofb_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/ofb_enc.c')
-rw-r--r--crypto/des/ofb_enc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/des/ofb_enc.c b/crypto/des/ofb_enc.c
index 70493e632c..715ecb291f 100644
--- a/crypto/des/ofb_enc.c
+++ b/crypto/des/ofb_enc.c
@@ -65,7 +65,8 @@
* byte.
*/
void des_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits,
- long length, des_key_schedule schedule, des_cblock *ivec)
+ long length, des_key_schedule *schedule,
+ des_cblock *ivec)
{
register DES_LONG d0,d1,vv0,vv1,v0,v1,n=(numbits+7)/8;
register DES_LONG mask0,mask1;