xref: /minix3/crypto/external/bsd/openssl/lib/libdes/VERSION (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc	Fixed the weak key values which were wrong :-(
2*ebfedea0SLionel Sambuc	Defining SIGACTION causes sigaction() to be used instead of signal().
3*ebfedea0SLionel Sambuc	SIGUSR1/SIGUSR2 are no longer mapped in the read tty stuff because it
4*ebfedea0SLionel Sambuc	can cause problems.  This should hopefully not affect normal
5*ebfedea0SLionel Sambuc	applications.
6*ebfedea0SLionel Sambuc
7*ebfedea0SLionel SambucVersion 4.04
8*ebfedea0SLionel Sambuc	Fixed a few tests in destest.  Also added x86 assember for
9*ebfedea0SLionel Sambuc	des_ncbc_encrypt() which is the standard cbc mode function.
10*ebfedea0SLionel Sambuc	This makes a very very large performace difference.
11*ebfedea0SLionel Sambuc	Ariel Glenn ariel@columbia.edu reports that the terminal
12*ebfedea0SLionel Sambuc	'turn echo off' can return (errno == EINVAL) under solaris
13*ebfedea0SLionel Sambuc	when redirection is used.  So I now catch that as well as ENOTTY.
14*ebfedea0SLionel Sambuc
15*ebfedea0SLionel Sambuc
16*ebfedea0SLionel SambucVersion 4.03
17*ebfedea0SLionel Sambuc	Left a static out of enc_write.c, which caused to buffer to be
18*ebfedea0SLionel Sambuc	continiously malloc()ed.  Does anyone use these functions?  I keep
19*ebfedea0SLionel Sambuc	on feeling like removing them since I only had these in there
20*ebfedea0SLionel Sambuc	for a version of kerberised login.  Anyway, this was pointed out
21*ebfedea0SLionel Sambuc	by Theo de Raadt <deraadt@cvs.openbsd.org>
22*ebfedea0SLionel Sambuc	The 'n' bit ofb code was wrong, it was not shifting the shift
23*ebfedea0SLionel Sambuc	register. It worked correctly for n == 64.  Thanks to
24*ebfedea0SLionel Sambuc	Gigi Ankeny <Gigi.Ankeny@Eng.Sun.COM> for pointing this one out.
25*ebfedea0SLionel Sambuc
26*ebfedea0SLionel SambucVersion 4.02
27*ebfedea0SLionel Sambuc	I was doing 'if (memcmp(weak_keys[i],key,sizeof(key)) == 0)'
28*ebfedea0SLionel Sambuc	when checking for weak keys which is wrong :-(, pointed out by
29*ebfedea0SLionel Sambuc	Markus F.X.J. Oberhumer <markus.oberhumer@jk.uni-linz.ac.at>.
30*ebfedea0SLionel Sambuc
31*ebfedea0SLionel SambucVersion 4.01
32*ebfedea0SLionel Sambuc	Even faster inner loop in the DES assembler for x86 and a modification
33*ebfedea0SLionel Sambuc	for IP/FP which is faster on x86.  Both of these changes are
34*ebfedea0SLionel Sambuc	from Svend Olaf Mikkelsen <svolaf@inet.uni-c.dk>.  His
35*ebfedea0SLionel Sambuc	changes make the assembler run %40 faster on a pentium.  This is just
36*ebfedea0SLionel Sambuc	a case of getting the instruction sequence 'just right'.
37*ebfedea0SLionel Sambuc	All credit to 'Svend' :-)
38*ebfedea0SLionel Sambuc	Quite a few special x86 'make' targets.
39*ebfedea0SLionel Sambuc	A libdes-l (lite) distribution.
40*ebfedea0SLionel Sambuc
41*ebfedea0SLionel SambucVersion 4.00
42*ebfedea0SLionel Sambuc	After a bit of a pause, I'll up the major version number since this
43*ebfedea0SLionel Sambuc	is mostly a performace release.  I've added x86 assembler and
44*ebfedea0SLionel Sambuc	added more options for performance.  A %28 speedup for gcc
45*ebfedea0SLionel Sambuc	on a pentium and the assembler is a %50 speedup.
46*ebfedea0SLionel Sambuc	MIPS CPU's, sparc and Alpha are the main CPU's with speedups.
47*ebfedea0SLionel Sambuc	Run des_opts to work out which options should be used.
48*ebfedea0SLionel Sambuc	DES_RISC1/DES_RISC2 use alternative inner loops which use
49*ebfedea0SLionel Sambuc	more registers but should give speedups on any CPU that does
50*ebfedea0SLionel Sambuc	dual issue (pentium).  DES_UNROLL unrolls the inner loop,
51*ebfedea0SLionel Sambuc	which costs in code size.
52*ebfedea0SLionel Sambuc
53*ebfedea0SLionel SambucVersion 3.26
54*ebfedea0SLionel Sambuc	I've finally removed one of the shifts in D_ENCRYPT.  This
55*ebfedea0SLionel Sambuc	meant I've changed the des_SPtrans table (spr.h), the set_key()
56*ebfedea0SLionel Sambuc	function and some things in des_enc.c.  This has definitly
57*ebfedea0SLionel Sambuc	made things faster :-).  I've known about this one for some
58*ebfedea0SLionel Sambuc	time but I've been too lazy to follow it up :-).
59*ebfedea0SLionel Sambuc	Noticed that in the D_ENCRYPT() macro, we can just do L^=(..)^(..)^..
60*ebfedea0SLionel Sambuc	instead of L^=((..)|(..)|(..)..  This should save a register at
61*ebfedea0SLionel Sambuc	least.
62*ebfedea0SLionel Sambuc	Assember for x86.  The file to replace is des_enc.c, which is replaced
63*ebfedea0SLionel Sambuc	by one of the assembler files found in asm.  Look at des/asm/readme
64*ebfedea0SLionel Sambuc	for more info.
65*ebfedea0SLionel Sambuc
66*ebfedea0SLionel Sambuc	/* Modification to fcrypt so it can be compiled to support
67*ebfedea0SLionel Sambuc	HPUX 10.x's long password format, define -DLONGCRYPT to use this.
68*ebfedea0SLionel Sambuc	Thanks to Jens Kupferschmidt <bt1cu@hpboot.rz.uni-leipzig.de>. */
69*ebfedea0SLionel Sambuc
70*ebfedea0SLionel Sambuc	SIGWINCH case put in des_read_passwd() so the function does not
71*ebfedea0SLionel Sambuc	'exit' if this function is recieved.
72*ebfedea0SLionel Sambuc
73*ebfedea0SLionel SambucVersion 3.25 17/07/96
74*ebfedea0SLionel Sambuc	Modified read_pwd.c so that stdin can be read if not a tty.
75*ebfedea0SLionel Sambuc	Thanks to Jeff Barber <jeffb@issl.atl.hp.com> for the patches.
76*ebfedea0SLionel Sambuc	des_init_random_number_generator() shortened due to VMS linker
77*ebfedea0SLionel Sambuc	limits.
78*ebfedea0SLionel Sambuc	Added RSA's DESX cbc mode.  It is a form of cbc encryption, with 2
79*ebfedea0SLionel Sambuc	8 byte quantites xored before and after encryption.
80*ebfedea0SLionel Sambuc	des_xcbc_encryption() - the name is funny to preserve the des_
81*ebfedea0SLionel Sambuc	prefix on all functions.
82*ebfedea0SLionel Sambuc
83*ebfedea0SLionel SambucVersion 3.24 20/04/96
84*ebfedea0SLionel Sambuc	The DES_PTR macro option checked and used by SSLeay configuration
85*ebfedea0SLionel Sambuc
86*ebfedea0SLionel SambucVersion 3.23 11/04/96
87*ebfedea0SLionel Sambuc	Added DES_LONG.  If defined to 'unsigned int' on the DEC Alpha,
88*ebfedea0SLionel Sambuc	it gives a %20 speedup :-)
89*ebfedea0SLionel Sambuc	Fixed the problem with des.pl under perl5.  The patches were
90*ebfedea0SLionel Sambuc	sent by Ed Kubaitis (ejk@uiuc.edu).
91*ebfedea0SLionel Sambuc	if fcrypt.c, changed values to handle illegal salt values the way
92*ebfedea0SLionel Sambuc	normal crypt() implementations do.  Some programs apparently use
93*ebfedea0SLionel Sambuc	them :-(. The patch was sent by Bjorn Gronvall <bg@sics.se>
94*ebfedea0SLionel Sambuc
95*ebfedea0SLionel SambucVersion 3.22 29/11/95
96*ebfedea0SLionel Sambuc	Bug in des(1), an error with the uuencoding stuff when the
97*ebfedea0SLionel Sambuc	'data' is small, thanks to Geoff Keating <keagchon@mehta.anu.edu.au>
98*ebfedea0SLionel Sambuc	for the patch.
99*ebfedea0SLionel Sambuc
100*ebfedea0SLionel SambucVersion 3.21 22/11/95
101*ebfedea0SLionel Sambuc	After some emailing back and forth with
102*ebfedea0SLionel Sambuc	Colin Plumb <colin@nyx10.cs.du.edu>, I've tweaked a few things
103*ebfedea0SLionel Sambuc	and in a future version I will probably put in some of the
104*ebfedea0SLionel Sambuc	optimisation he suggested for use with the DES_USE_PTR option.
105*ebfedea0SLionel Sambuc	Extra routines from Mark Murray <mark@grondar.za> for use in
106*ebfedea0SLionel Sambuc	freeBSD.  They mostly involve random number generation for use
107*ebfedea0SLionel Sambuc	with kerberos.  They involve evil machine specific system calls
108*ebfedea0SLionel Sambuc	etc so I would normally suggest pushing this stuff into the
109*ebfedea0SLionel Sambuc	application and/or using RAND_seed()/RAND_bytes() if you are
110*ebfedea0SLionel Sambuc	using this DES library as part of SSLeay.
111*ebfedea0SLionel Sambuc	Redone the read_pw() function so that it is cleaner and
112*ebfedea0SLionel Sambuc	supports termios, thanks to Sameer Parekh <sameer@c2.org>
113*ebfedea0SLionel Sambuc	for the initial patches for this.
114*ebfedea0SLionel Sambuc	Renamed 3ecb_encrypt() to ecb3_encrypt().  This has been
115*ebfedea0SLionel Sambuc	 done just to make things more consistent.
116*ebfedea0SLionel Sambuc	I have also now added triple DES versions of cfb and ofb.
117*ebfedea0SLionel Sambuc
118*ebfedea0SLionel SambucVersion 3.20
119*ebfedea0SLionel Sambuc	Damn, Damn, Damn, as pointed out by Mike_Spreitzer.PARC@xerox.com,
120*ebfedea0SLionel Sambuc	my des_random_seed() function was only copying 4 bytes of the
121*ebfedea0SLionel Sambuc	passed seed into the init structure.  It is now fixed to copy 8.
122*ebfedea0SLionel Sambuc	My own suggestion is to used something like MD5 :-)
123*ebfedea0SLionel Sambuc
124*ebfedea0SLionel SambucVersion 3.19
125*ebfedea0SLionel Sambuc	While looking at my code one day, I though, why do I keep on
126*ebfedea0SLionel Sambuc	calling des_encrypt(in,out,ks,enc) when every function that
127*ebfedea0SLionel Sambuc	calls it has in and out the same.  So I dropped the 'out'
128*ebfedea0SLionel Sambuc	parameter, people should not be using this function.
129*ebfedea0SLionel Sambuc
130*ebfedea0SLionel SambucVersion 3.18 30/08/95
131*ebfedea0SLionel Sambuc	Fixed a few bit with the distribution and the filenames.
132*ebfedea0SLionel Sambuc	3.17 had been munged via a move to DOS and back again.
133*ebfedea0SLionel Sambuc	NO CODE CHANGES
134*ebfedea0SLionel Sambuc
135*ebfedea0SLionel SambucVersion 3.17 14/07/95
136*ebfedea0SLionel Sambuc	Fixed ede3 cbc which I had broken in 3.16.  I have also
137*ebfedea0SLionel Sambuc	removed some unneeded variables in 7-8 of the routines.
138*ebfedea0SLionel Sambuc
139*ebfedea0SLionel SambucVersion 3.16 26/06/95
140*ebfedea0SLionel Sambuc	Added des_encrypt2() which does not use IP/FP, used by triple
141*ebfedea0SLionel Sambuc	des routines.  Tweaked things a bit elsewhere. %13 speedup on
142*ebfedea0SLionel Sambuc	sparc and %6 on a R4400 for ede3 cbc mode.
143*ebfedea0SLionel Sambuc
144*ebfedea0SLionel SambucVersion 3.15 06/06/95
145*ebfedea0SLionel Sambuc	Added des_ncbc_encrypt(), it is des_cbc mode except that it is
146*ebfedea0SLionel Sambuc	'normal' and copies the new iv value back over the top of the
147*ebfedea0SLionel Sambuc	passed parameter.
148*ebfedea0SLionel Sambuc	CHANGED des_ede3_cbc_encrypt() so that it too now overwrites
149*ebfedea0SLionel Sambuc	the iv.  THIS WILL BREAK EXISTING CODE, but since this function
150*ebfedea0SLionel Sambuc	only new, I feel I can change it, not so with des_cbc_encrypt :-(.
151*ebfedea0SLionel Sambuc	I need to update the documentation.
152*ebfedea0SLionel Sambuc
153*ebfedea0SLionel SambucVersion 3.14 31/05/95
154*ebfedea0SLionel Sambuc	New release upon the world, as part of my SSL implementation.
155*ebfedea0SLionel Sambuc	New copyright and usage stuff.  Basically free for all to use
156*ebfedea0SLionel Sambuc	as long as you say it came from me :-)
157*ebfedea0SLionel Sambuc
158*ebfedea0SLionel SambucVersion 3.13 31/05/95
159*ebfedea0SLionel Sambuc	A fix in speed.c, if HZ is not defined, I set it to 100.0
160*ebfedea0SLionel Sambuc	which is reasonable for most unixes except SunOS 4.x.
161*ebfedea0SLionel Sambuc	I now have a #ifdef sun but timing for SunOS 4.x looked very
162*ebfedea0SLionel Sambuc	good :-(.  At my last job where I used SunOS 4.x, it was
163*ebfedea0SLionel Sambuc	defined to be 60.0 (look at the old INSTALL documentation), at
164*ebfedea0SLionel Sambuc	the last release had it changed to 100.0 since I now work with
165*ebfedea0SLionel Sambuc	Solaris2 and SVR4 boxes.
166*ebfedea0SLionel Sambuc	Thanks to  Rory Chisholm <rchishol@math.ethz.ch> for pointing this
167*ebfedea0SLionel Sambuc	one out.
168*ebfedea0SLionel Sambuc
169*ebfedea0SLionel SambucVersion 3.12 08/05/95
170*ebfedea0SLionel Sambuc	As pointed out by The Crypt Keeper <tck@bend.UCSD.EDU>,
171*ebfedea0SLionel Sambuc	my D_ENCRYPT macro in crypt() had an un-necessary variable.
172*ebfedea0SLionel Sambuc	It has been removed.
173*ebfedea0SLionel Sambuc
174*ebfedea0SLionel SambucVersion 3.11 03/05/95
175*ebfedea0SLionel Sambuc	Added des_ede3_cbc_encrypt() which is cbc mode des with 3 keys
176*ebfedea0SLionel Sambuc	and one iv.  It is a standard and I needed it for my SSL code.
177*ebfedea0SLionel Sambuc	It makes more sense to use this for triple DES than
178*ebfedea0SLionel Sambuc	3cbc_encrypt().  I have also added (or should I say tested :-)
179*ebfedea0SLionel Sambuc	cfb64_encrypt() which is cfb64 but it will encrypt a partial
180*ebfedea0SLionel Sambuc	number of bytes - 3 bytes in 3 bytes out.  Again this is for
181*ebfedea0SLionel Sambuc	my SSL library, as a form of encryption to use with SSL
182*ebfedea0SLionel Sambuc	telnet.
183*ebfedea0SLionel Sambuc
184*ebfedea0SLionel SambucVersion 3.10 22/03/95
185*ebfedea0SLionel Sambuc	Fixed a bug in 3cbc_encrypt() :-(.  When making repeated calls
186*ebfedea0SLionel Sambuc	to cbc3_encrypt, the 2 iv values that were being returned to
187*ebfedea0SLionel Sambuc	be used in the next call were reversed :-(.
188*ebfedea0SLionel Sambuc	Many thanks to Bill Wade <wade@Stoner.COM> for pointing out
189*ebfedea0SLionel Sambuc	this error.
190*ebfedea0SLionel Sambuc
191*ebfedea0SLionel SambucVersion 3.09 01/02/95
192*ebfedea0SLionel Sambuc	Fixed des_random_key to far more random, it was rather feeble
193*ebfedea0SLionel Sambuc	with regards to picking the initial seed.  The problem was
194*ebfedea0SLionel Sambuc	pointed out by Olaf Kirch <okir@monad.swb.de>.
195*ebfedea0SLionel Sambuc
196*ebfedea0SLionel SambucVersion 3.08 14/12/94
197*ebfedea0SLionel Sambuc	Added Makefile.PL so libdes can be built into perl5.
198*ebfedea0SLionel Sambuc	Changed des_locl.h so RAND is always defined.
199*ebfedea0SLionel Sambuc
200*ebfedea0SLionel SambucVersion 3.07 05/12/94
201*ebfedea0SLionel Sambuc	Added GNUmake and stuff so the library can be build with
202*ebfedea0SLionel Sambuc	glibc.
203*ebfedea0SLionel Sambuc
204*ebfedea0SLionel SambucVersion 3.06 30/08/94
205*ebfedea0SLionel Sambuc	Added rpc_enc.c which contains _des_crypt.  This is for use in
206*ebfedea0SLionel Sambuc	secure_rpc v 4.0
207*ebfedea0SLionel Sambuc	Finally fixed the cfb_enc problems.
208*ebfedea0SLionel Sambuc	Fixed a few parameter parsing bugs in des (-3 and -b), thanks
209*ebfedea0SLionel Sambuc	to Rob McMillan <R.McMillan@its.gu.edu.au>
210*ebfedea0SLionel Sambuc
211*ebfedea0SLionel SambucVersion 3.05 21/04/94
212*ebfedea0SLionel Sambuc	for unsigned long l; gcc does not produce ((l>>34) == 0)
213*ebfedea0SLionel Sambuc	This causes bugs in cfb_enc.
214*ebfedea0SLionel Sambuc	Thanks to Hadmut Danisch <danisch@ira.uka.de>
215*ebfedea0SLionel Sambuc
216*ebfedea0SLionel SambucVersion 3.04 20/04/94
217*ebfedea0SLionel Sambuc	Added a version number to des.c and libdes.a
218*ebfedea0SLionel Sambuc
219*ebfedea0SLionel SambucVersion 3.03 12/01/94
220*ebfedea0SLionel Sambuc	Fixed a bug in non zero iv in 3cbc_enc.
221*ebfedea0SLionel Sambuc
222*ebfedea0SLionel SambucVersion 3.02 29/10/93
223*ebfedea0SLionel Sambuc	I now work in a place where there are 6+ architectures and 14+
224*ebfedea0SLionel Sambuc	OS versions :-).
225*ebfedea0SLionel Sambuc	Fixed TERMIO definition so the most sys V boxes will work :-)
226*ebfedea0SLionel Sambuc
227*ebfedea0SLionel SambucRelease upon comp.sources.misc
228*ebfedea0SLionel SambucVersion 3.01 08/10/93
229*ebfedea0SLionel Sambuc	Added des_3cbc_encrypt()
230*ebfedea0SLionel Sambuc
231*ebfedea0SLionel SambucVersion 3.00 07/10/93
232*ebfedea0SLionel Sambuc	Fixed up documentation.
233*ebfedea0SLionel Sambuc	quad_cksum definitely compatible with MIT's now.
234*ebfedea0SLionel Sambuc
235*ebfedea0SLionel SambucVersion 2.30 24/08/93
236*ebfedea0SLionel Sambuc	Triple DES now defaults to triple cbc but can do triple ecb
237*ebfedea0SLionel Sambuc	 with the -b flag.
238*ebfedea0SLionel Sambuc	Fixed some MSDOS uuen/uudecoding problems, thanks to
239*ebfedea0SLionel Sambuc	Added prototypes.
240*ebfedea0SLionel Sambuc
241*ebfedea0SLionel SambucVersion 2.22 29/06/93
242*ebfedea0SLionel Sambuc	Fixed a bug in des_is_weak_key() which stopped it working :-(
243*ebfedea0SLionel Sambuc	thanks to engineering@MorningStar.Com.
244*ebfedea0SLionel Sambuc
245*ebfedea0SLionel SambucVersion 2.21 03/06/93
246*ebfedea0SLionel Sambuc	des(1) with no arguments gives quite a bit of help.
247*ebfedea0SLionel Sambuc	Added -c (generate ckecksum) flag to des(1).
248*ebfedea0SLionel Sambuc	Added -3 (triple DES) flag to des(1).
249*ebfedea0SLionel Sambuc	Added cfb and ofb routines to the library.
250*ebfedea0SLionel Sambuc
251*ebfedea0SLionel SambucVersion 2.20 11/03/93
252*ebfedea0SLionel Sambuc	Added -u (uuencode) flag to des(1).
253*ebfedea0SLionel Sambuc	I have been playing with byte order in quad_cksum to make it
254*ebfedea0SLionel Sambuc	 compatible with MIT's version.  All I can say is avid this
255*ebfedea0SLionel Sambuc	 function if possible since MIT's output is endian dependent.
256*ebfedea0SLionel Sambuc
257*ebfedea0SLionel SambucVersion 2.12 14/10/92
258*ebfedea0SLionel Sambuc	Added MSDOS specific macro in ecb_encrypt which gives a %70
259*ebfedea0SLionel Sambuc	 speed up when the code is compiled with turbo C.
260*ebfedea0SLionel Sambuc
261*ebfedea0SLionel SambucVersion 2.11 12/10/92
262*ebfedea0SLionel Sambuc	Speedup in set_key (recoding of PC-1)
263*ebfedea0SLionel Sambuc	 I now do it in 47 simple operations, down from 60.
264*ebfedea0SLionel Sambuc	 Thanks to John Fletcher (john_fletcher@lccmail.ocf.llnl.gov)
265*ebfedea0SLionel Sambuc	 for motivating me to look for a faster system :-)
266*ebfedea0SLionel Sambuc	 The speedup is probably less that 1% but it is still 13
267*ebfedea0SLionel Sambuc	 instructions less :-).
268*ebfedea0SLionel Sambuc
269*ebfedea0SLionel SambucVersion 2.10 06/10/92
270*ebfedea0SLionel Sambuc	The code now works on the 64bit ETA10 and CRAY without modifications or
271*ebfedea0SLionel Sambuc	 #defines.  I believe the code should work on any machine that
272*ebfedea0SLionel Sambuc	 defines long, int or short to be 8 bytes long.
273*ebfedea0SLionel Sambuc	Thanks to Shabbir J. Safdar (shabby@mentor.cc.purdue.edu)
274*ebfedea0SLionel Sambuc	 for helping me fix the code to run on 64bit machines (he had
275*ebfedea0SLionel Sambuc	 access to an ETA10).
276*ebfedea0SLionel Sambuc	Thanks also to John Fletcher <john_fletcher@lccmail.ocf.llnl.gov>
277*ebfedea0SLionel Sambuc	 for testing the routines on a CRAY.
278*ebfedea0SLionel Sambuc	read_password.c has been renamed to read_passwd.c
279*ebfedea0SLionel Sambuc	string_to_key.c has been renamed to string2key.c
280*ebfedea0SLionel Sambuc
281*ebfedea0SLionel SambucVersion 2.00 14/09/92
282*ebfedea0SLionel Sambuc	Made mods so that the library should work on 64bit CPU's.
283*ebfedea0SLionel Sambuc	Removed all my uchar and ulong defs.  To many different
284*ebfedea0SLionel Sambuc	 versions of unix define them in their header files in too many
285*ebfedea0SLionel Sambuc	 different combinations :-)
286*ebfedea0SLionel Sambuc	IRIX - Sillicon Graphics mods (mostly in read_password.c).
287*ebfedea0SLionel Sambuc	 Thanks to Andrew Daviel (advax@erich.triumf.ca)
288*ebfedea0SLionel Sambuc
289*ebfedea0SLionel SambucVersion 1.99 26/08/92
290*ebfedea0SLionel Sambuc	Fixed a bug or 2 in enc_read.c
291*ebfedea0SLionel Sambuc	Fixed a bug in enc_write.c
292*ebfedea0SLionel Sambuc	Fixed a pseudo bug in fcrypt.c (very obscure).
293*ebfedea0SLionel Sambuc
294*ebfedea0SLionel SambucVersion 1.98 31/07/92
295*ebfedea0SLionel Sambuc	Support for the ETA10.  This is a strange machine that defines
296*ebfedea0SLionel Sambuc	longs and ints as 8 bytes and shorts as 4 bytes.
297*ebfedea0SLionel Sambuc	Since I do evil things with long * that assume that they are 4
298*ebfedea0SLionel Sambuc	bytes.  Look in the Makefile for the option to compile for
299*ebfedea0SLionel Sambuc	this machine.  quad_cksum appears to have problems but I
300*ebfedea0SLionel Sambuc	will don't have the time to fix it right now, and this is not
301*ebfedea0SLionel Sambuc	a function that uses DES and so will not effect the main uses
302*ebfedea0SLionel Sambuc	of the library.
303*ebfedea0SLionel Sambuc
304*ebfedea0SLionel SambucVersion 1.97 20/05/92 eay
305*ebfedea0SLionel Sambuc	Fixed the Imakefile and made some changes to des.h to fix some
306*ebfedea0SLionel Sambuc	problems when building this package with Kerberos v 4.
307*ebfedea0SLionel Sambuc
308*ebfedea0SLionel SambucVersion 1.96 18/05/92 eay
309*ebfedea0SLionel Sambuc	Fixed a small bug in string_to_key() where problems could
310*ebfedea0SLionel Sambuc	occur if des_check_key was set to true and the string
311*ebfedea0SLionel Sambuc	generated a weak key.
312*ebfedea0SLionel Sambuc
313*ebfedea0SLionel SambucPatch2 posted to comp.sources.misc
314*ebfedea0SLionel SambucVersion 1.95 13/05/92 eay
315*ebfedea0SLionel Sambuc	Added an alternative version of the D_ENCRYPT macro in
316*ebfedea0SLionel Sambuc	ecb_encrypt and fcrypt.  Depending on the compiler, one version or the
317*ebfedea0SLionel Sambuc	other will be faster.  This was inspired by
318*ebfedea0SLionel Sambuc	Dana How <how@isl.stanford.edu>, and her pointers about doing the
319*ebfedea0SLionel Sambuc	*(ulong *)((uchar *)ptr+(value&0xfc))
320*ebfedea0SLionel Sambuc	vs
321*ebfedea0SLionel Sambuc	ptr[value&0x3f]
322*ebfedea0SLionel Sambuc	to stop the C compiler doing a <<2 to convert the long array index.
323*ebfedea0SLionel Sambuc
324*ebfedea0SLionel SambucVersion 1.94 05/05/92 eay
325*ebfedea0SLionel Sambuc	Fixed an incompatibility between my string_to_key and the MIT
326*ebfedea0SLionel Sambuc	 version.  When the key is longer than 8 chars, I was wrapping
327*ebfedea0SLionel Sambuc	 with a different method.  To use the old version, define
328*ebfedea0SLionel Sambuc	 OLD_STR_TO_KEY in the makefile.  Thanks to
329*ebfedea0SLionel Sambuc	 viktor@newsu.shearson.com (Viktor Dukhovni).
330*ebfedea0SLionel Sambuc
331*ebfedea0SLionel SambucVersion 1.93 28/04/92 eay
332*ebfedea0SLionel Sambuc	Fixed the VMS mods so that echo is now turned off in
333*ebfedea0SLionel Sambuc	 read_password.  Thanks again to brennan@coco.cchs.su.oz.AU.
334*ebfedea0SLionel Sambuc	MSDOS support added.  The routines can be compiled with
335*ebfedea0SLionel Sambuc	 Turbo C (v2.0) and MSC (v5.1).  Make sure MSDOS is defined.
336*ebfedea0SLionel Sambuc
337*ebfedea0SLionel SambucPatch1 posted to comp.sources.misc
338*ebfedea0SLionel SambucVersion 1.92 13/04/92 eay
339*ebfedea0SLionel Sambuc	Changed D_ENCRYPT so that the rotation of R occurs outside of
340*ebfedea0SLionel Sambuc	 the loop.  This required rotating all the longs in sp.h (now
341*ebfedea0SLionel Sambuc	 called spr.h). Thanks to Richard Outerbridge <71755.204@CompuServe.COM>
342*ebfedea0SLionel Sambuc	speed.c has been changed so it will work without SIGALRM.  If
343*ebfedea0SLionel Sambuc	 times(3) is not present it will try to use ftime() instead.
344*ebfedea0SLionel Sambuc
345*ebfedea0SLionel SambucVersion 1.91 08/04/92 eay
346*ebfedea0SLionel Sambuc	Added -E/-D options to des(1) so it can use string_to_key.
347*ebfedea0SLionel Sambuc	Added SVR4 mods suggested by witr@rwwa.COM
348*ebfedea0SLionel Sambuc	Added VMS mods suggested by brennan@coco.cchs.su.oz.AU.  If
349*ebfedea0SLionel Sambuc	anyone knows how to turn of tty echo in VMS please tell me or
350*ebfedea0SLionel Sambuc	implement it yourself :-).
351*ebfedea0SLionel Sambuc	Changed FILE *IN/*OUT to *DES_IN/*DES_OUT since it appears VMS
352*ebfedea0SLionel Sambuc	does not like IN/OUT being used.
353*ebfedea0SLionel Sambuc
354*ebfedea0SLionel SambucLibdes posted to comp.sources.misc
355*ebfedea0SLionel SambucVersion 1.9 24/03/92 eay
356*ebfedea0SLionel Sambuc	Now contains a fast small crypt replacement.
357*ebfedea0SLionel Sambuc	Added des(1) command.
358*ebfedea0SLionel Sambuc	Added des_rw_mode so people can use cbc encryption with
359*ebfedea0SLionel Sambuc	enc_read and enc_write.
360*ebfedea0SLionel Sambuc
361*ebfedea0SLionel SambucVersion 1.8 15/10/91 eay
362*ebfedea0SLionel Sambuc	Bug in cbc_cksum.
363*ebfedea0SLionel Sambuc	Many thanks to Keith Reynolds (keithr@sco.COM) for pointing this
364*ebfedea0SLionel Sambuc	one out.
365*ebfedea0SLionel Sambuc
366*ebfedea0SLionel SambucVersion 1.7 24/09/91 eay
367*ebfedea0SLionel Sambuc	Fixed set_key :-)
368*ebfedea0SLionel Sambuc	set_key is 4 times faster and takes less space.
369*ebfedea0SLionel Sambuc	There are a few minor changes that could be made.
370*ebfedea0SLionel Sambuc
371*ebfedea0SLionel SambucVersion 1.6 19/09/1991 eay
372*ebfedea0SLionel Sambuc	Finally go IP and FP finished.
373*ebfedea0SLionel Sambuc	Now I need to fix set_key.
374*ebfedea0SLionel Sambuc	This version is quite a bit faster that 1.51
375*ebfedea0SLionel Sambuc
376*ebfedea0SLionel SambucVersion 1.52 15/06/1991 eay
377*ebfedea0SLionel Sambuc	20% speedup in ecb_encrypt by changing the E bit selection
378*ebfedea0SLionel Sambuc	to use 2 32bit words.  This also required modification of the
379*ebfedea0SLionel Sambuc	sp table.  There is still a way to speedup the IP and IP-1
380*ebfedea0SLionel Sambuc	(hints from outer@sq.com) still working on this one :-(.
381*ebfedea0SLionel Sambuc
382*ebfedea0SLionel SambucVersion 1.51 07/06/1991 eay
383*ebfedea0SLionel Sambuc	Faster des_encrypt by loop unrolling
384*ebfedea0SLionel Sambuc	Fixed bug in quad_cksum.c (thanks to hughes@logos.ucs.indiana.edu)
385*ebfedea0SLionel Sambuc
386*ebfedea0SLionel SambucVersion 1.50 28/05/1991 eay
387*ebfedea0SLionel Sambuc	Optimised the code a bit more for the sparc.  I have improved the
388*ebfedea0SLionel Sambuc	speed of the inner des_encrypt by speeding up the initial and
389*ebfedea0SLionel Sambuc	final permutations.
390*ebfedea0SLionel Sambuc
391*ebfedea0SLionel SambucVersion 1.40 23/10/1990 eay
392*ebfedea0SLionel Sambuc	Fixed des_random_key, it did not produce a random key :-(
393*ebfedea0SLionel Sambuc
394*ebfedea0SLionel SambucVersion 1.30  2/10/1990 eay
395*ebfedea0SLionel Sambuc	Have made des_quad_cksum the same as MIT's, the full package
396*ebfedea0SLionel Sambuc	should be compatible with MIT's
397*ebfedea0SLionel Sambuc	Have tested on a DECstation 3100
398*ebfedea0SLionel Sambuc	Still need to fix des_set_key (make it faster).
399*ebfedea0SLionel Sambuc	Does des_cbc_encrypts at 70.5k/sec on a 3100.
400*ebfedea0SLionel Sambuc
401*ebfedea0SLionel SambucVersion 1.20 18/09/1990 eay
402*ebfedea0SLionel Sambuc	Fixed byte order dependencies.
403*ebfedea0SLionel Sambuc	Fixed (I hope) all the word alignment problems.
404*ebfedea0SLionel Sambuc	Speedup in des_ecb_encrypt.
405*ebfedea0SLionel Sambuc
406*ebfedea0SLionel SambucVersion 1.10 11/09/1990 eay
407*ebfedea0SLionel Sambuc	Added des_enc_read and des_enc_write.
408*ebfedea0SLionel Sambuc	Still need to fix des_quad_cksum.
409*ebfedea0SLionel Sambuc	Still need to document des_enc_read and des_enc_write.
410*ebfedea0SLionel Sambuc
411*ebfedea0SLionel SambucVersion 1.00 27/08/1990 eay
412*ebfedea0SLionel Sambuc
413