diff options
Diffstat (limited to 'secure/lib/libdes/cfb64ede.c')
-rw-r--r-- | secure/lib/libdes/cfb64ede.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/secure/lib/libdes/cfb64ede.c b/secure/lib/libdes/cfb64ede.c index 93af817..f56c87c 100644 --- a/secure/lib/libdes/cfb64ede.c +++ b/secure/lib/libdes/cfb64ede.c @@ -1,5 +1,5 @@ -/* lib/des/cfb64ede.c */ -/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au) +/* crypto/des/cfb64ede.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; @@ -80,9 +81,9 @@ int encrypt; ti[0]=v0; ti[1]=v1; - des_encrypt2((unsigned long *)ti,ks1,DES_ENCRYPT); - des_encrypt2((unsigned long *)ti,ks2,DES_DECRYPT); - des_encrypt2((unsigned long *)ti,ks3,DES_ENCRYPT); + des_encrypt2((DES_LONG *)ti,ks1,DES_ENCRYPT); + des_encrypt2((DES_LONG *)ti,ks2,DES_DECRYPT); + des_encrypt2((DES_LONG *)ti,ks3,DES_ENCRYPT); v0=ti[0]; v1=ti[1]; @@ -112,9 +113,9 @@ int encrypt; ti[0]=v0; ti[1]=v1; - des_encrypt2((unsigned long *)ti,ks1,DES_ENCRYPT); - des_encrypt2((unsigned long *)ti,ks2,DES_DECRYPT); - des_encrypt2((unsigned long *)ti,ks3,DES_ENCRYPT); + des_encrypt2((DES_LONG *)ti,ks1,DES_ENCRYPT); + des_encrypt2((DES_LONG *)ti,ks2,DES_DECRYPT); + des_encrypt2((DES_LONG *)ti,ks3,DES_ENCRYPT); v0=ti[0]; v1=ti[1]; |