diff options
author | markm <markm@FreeBSD.org> | 1996-07-28 08:18:06 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1996-07-28 08:18:06 +0000 |
commit | 5313ba6bbed76bbe085937a5a042d87f2a5e601f (patch) | |
tree | 66628770810a6be62cfef66613534cbaedaecdf5 /secure/lib/libdes/ofb64ede.c | |
parent | ac425672272c2be2c8ff171a3ae8851e8219740f (diff) | |
download | FreeBSD-src-5313ba6bbed76bbe085937a5a042d87f2a5e601f.zip FreeBSD-src-5313ba6bbed76bbe085937a5a042d87f2a5e601f.tar.gz |
Latest libdes from Eric Young. Mainly code beautification.
Diffstat (limited to 'secure/lib/libdes/ofb64ede.c')
-rw-r--r-- | secure/lib/libdes/ofb64ede.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/secure/lib/libdes/ofb64ede.c b/secure/lib/libdes/ofb64ede.c index 3868e76..8923b5f 100644 --- a/secure/lib/libdes/ofb64ede.c +++ b/secure/lib/libdes/ofb64ede.c @@ -1,5 +1,5 @@ -/* lib/des/ofb64ede.c */ -/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au) +/* crypto/des/ofb64ede.c */ +/* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au) * All rights reserved. * * This file is part of an SSL implementation written @@ -59,12 +59,12 @@ des_key_schedule k1,k2,k3; des_cblock (*ivec); int *num; { - register unsigned long v0,v1; + register DES_LONG v0,v1; register int n=*num; register long l=length; des_cblock d; register char *dp; - unsigned long ti[2]; + DES_LONG ti[2]; unsigned char *iv; int save=0; @@ -84,9 +84,9 @@ int *num; ti[0]=v0; ti[1]=v1; - des_encrypt2((unsigned long *)ti,k1,DES_ENCRYPT); - des_encrypt2((unsigned long *)ti,k2,DES_DECRYPT); - des_encrypt2((unsigned long *)ti,k3,DES_ENCRYPT); + des_encrypt2((DES_LONG *)ti,k1,DES_ENCRYPT); + des_encrypt2((DES_LONG *)ti,k2,DES_DECRYPT); + des_encrypt2((DES_LONG *)ti,k3,DES_ENCRYPT); v0=ti[0]; v1=ti[1]; |