summaryrefslogtreecommitdiff
path: root/secure/lib/libdes/cfb64enc.c
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>1996-07-28 08:18:06 +0000
committerMark Murray <markm@FreeBSD.org>1996-07-28 08:18:06 +0000
commit9f2bc96e404f71130e59e6fb73114d7976c1e626 (patch)
tree4462567f6eb34de1cc9570e7ccd0c7fbd5f8f3e9 /secure/lib/libdes/cfb64enc.c
parent6a1ae88452437db30412d3568cdf34ccb652917b (diff)
parentde59bba0c50ad5885f6f8699e2cf16f5fe63b2af (diff)
Notes
Diffstat (limited to 'secure/lib/libdes/cfb64enc.c')
-rw-r--r--secure/lib/libdes/cfb64enc.c15
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);