From 1667d963e559cc7aa58d95bf9fbeb60cc03e8c97 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 4 Mar 2002 22:00:14 +0000 Subject: DES_LONG as non-int is just RIDICULOUS --- lib/libdes/Makefile | 8 +------- lib/libdes/VERSION | 4 +++- lib/libdes/shlib_version | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) (limited to 'lib') diff --git a/lib/libdes/Makefile b/lib/libdes/Makefile index 8c97cec3445..979aa795eeb 100644 --- a/lib/libdes/Makefile +++ b/lib/libdes/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 1998/08/29 21:12:17 deraadt Exp $ +# $OpenBSD: Makefile,v 1.4 2002/03/04 22:00:13 deraadt Exp $ LIB= des SRCS= cbc_cksm.c cbc_enc.c cbc3_enc.c cfb_enc.c cfb64ede.c cfb64enc.c \ @@ -7,12 +7,6 @@ SRCS= cbc_cksm.c cbc_enc.c cbc3_enc.c cfb_enc.c cfb64ede.c cfb64enc.c \ qud_cksm.c rand_key.c read_pwd.c rnd_keys.c rpc_enc.c set_key.c \ str2key.c supp.c xcbc_enc.c -# If you are on a DEC Alpha, edit des.h and change the DES_LONG -# define to 'unsigned int'. I have seen this give a %20 speedup. -.if ${MACHINE} == "alpha" -CFLAGS+= -DDES_LONG=u_int -.endif - #.if ${MACHINE} == "i386" #OBJS+= asm/dx86-out.o #.else diff --git a/lib/libdes/VERSION b/lib/libdes/VERSION index bb00c3eb12a..f95aded2bf1 100644 --- a/lib/libdes/VERSION +++ b/lib/libdes/VERSION @@ -55,7 +55,9 @@ Version 3.24 20/04/96 Version 3.23 11/04/96 Added DES_LONG. If defined to 'unsigned int' on the DEC Alpha, - it gives a %20 speedup :-) + it gives a %20 speedup :-) [Theo adds: Yeah, real clever, and + if you do NOT add it on 64 bit architectures, the code crashes. + Very very clever.] Fixed the problem with des.pl under perl5. The patches were sent by Ed Kubaitis (ejk@uiuc.edu). if fcrypt.c, changed values to handle illegal salt values the way diff --git a/lib/libdes/shlib_version b/lib/libdes/shlib_version index 9c1551636c5..5b844bbf422 100644 --- a/lib/libdes/shlib_version +++ b/lib/libdes/shlib_version @@ -1,2 +1,2 @@ -major=6 +major=7 minor=0 -- cgit v1.2.3