summaryrefslogtreecommitdiffstats
path: root/secure/lib/libdes/ofb_enc.c
diff options
context:
space:
mode:
Diffstat (limited to 'secure/lib/libdes/ofb_enc.c')
-rw-r--r--secure/lib/libdes/ofb_enc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/secure/lib/libdes/ofb_enc.c b/secure/lib/libdes/ofb_enc.c
index e95cadd..27b3691 100644
--- a/secure/lib/libdes/ofb_enc.c
+++ b/secure/lib/libdes/ofb_enc.c
@@ -1,5 +1,5 @@
-/* lib/des/ofb_enc.c */
-/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
+/* crypto/des/ofb_enc.c */
+/* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au)
* All rights reserved.
*
* This file is part of an SSL implementation written
@@ -61,11 +61,11 @@ long length;
des_key_schedule schedule;
des_cblock (*ivec);
{
- register unsigned long d0,d1,v0,v1,n=(numbits+7)/8;
- register unsigned long mask0,mask1;
+ register DES_LONG d0,d1,v0,v1,n=(numbits+7)/8;
+ register DES_LONG mask0,mask1;
register long l=length;
register int num=numbits;
- unsigned long ti[2];
+ DES_LONG ti[2];
unsigned char *iv;
if (num > 64) return;
@@ -93,7 +93,7 @@ des_cblock (*ivec);
ti[1]=v1;
while (l-- > 0)
{
- des_encrypt((unsigned long *)ti,schedule,DES_ENCRYPT);
+ des_encrypt((DES_LONG *)ti,schedule,DES_ENCRYPT);
c2ln(in,d0,d1,n);
in+=n;
d0=(d0^ti[0])&mask0;
OpenPOWER on IntegriCloud