diff options
Diffstat (limited to 'secure/lib/libdes/cfb64enc.c')
| -rw-r--r-- | secure/lib/libdes/cfb64enc.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/secure/lib/libdes/cfb64enc.c b/secure/lib/libdes/cfb64enc.c index 35875f3f647a..60c8511d69b7 100644 --- a/secure/lib/libdes/cfb64enc.c +++ b/secure/lib/libdes/cfb64enc.c @@ -1,5 +1,5 @@ -/* lib/des/cfb64enc.c */ -/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au) +/* crypto/des/cfb64enc.c */ +/* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au) * All rights reserved. * * This file is part of an SSL implementation written @@ -61,9 +61,10 @@ des_cblock (*ivec); int *num; int encrypt; { - register unsigned long v0,v1; - register long l=length,n=*num; - unsigned long ti[2]; + register DES_LONG v0,v1; + register long l=length; + register int n=*num; + DES_LONG ti[2]; unsigned char *iv,c,cc; iv=(unsigned char *)ivec; @@ -75,7 +76,7 @@ int encrypt; { c2l(iv,v0); ti[0]=v0; c2l(iv,v1); ti[1]=v1; - des_encrypt((unsigned long *)ti, + des_encrypt((DES_LONG *)ti, schedule,DES_ENCRYPT); iv=(unsigned char *)ivec; v0=ti[0]; l2c(v0,iv); @@ -96,7 +97,7 @@ int encrypt; { c2l(iv,v0); ti[0]=v0; c2l(iv,v1); ti[1]=v1; - des_encrypt((unsigned long *)ti, + des_encrypt((DES_LONG *)ti, schedule,DES_ENCRYPT); iv=(unsigned char *)ivec; v0=ti[0]; l2c(v0,iv); |
