Tizen 2.1 base
[framework/security/gnupg.git] / mpi / ChangeLog
1 2005-09-01  David Shaw  <dshaw@jabberwocky.com>
2
3         * mpicoder.c (mpi_read): Fix minor bug in reading a zero-length
4         MPI (was failing unnecessarily).
5
6 2005-05-06  Werner Koch  <wk@g10code.com>
7
8         * mpi-scan.c (mpi_putbyte, mpi_getbyte): Removed.  Not used.
9
10 2005-04-21  Werner Koch  <wk@g10code.com>
11
12         * mpicoder.c (mpi_read): Changed error detection to always return
13         an error while maintaining the actual number of bytes read.
14
15 2005-03-11  Werner Koch  <wk@g10code.com>
16
17         * Makefile.am (ASFLAGS): Renamed to AM_CCASFLAGS and added the
18         variable for non exectubale stack options.  Adapted users.
19
20 2004-12-20  Werner Koch  <wk@g10code.com>
21
22         * mpicoder.c (mpi_read_from_buffer): Don't abort in case of an
23         invalid MPI but print a message and return NULL.  Use log_info and
24         not log_error.
25
26 2004-10-26  Werner Koch  <wk@g10code.com>
27
28         * config.links: Use HOST instead of TARGET.
29
30 2004-10-12  Werner Koch  <wk@g10code.com>
31
32         * Makefile.am (.S.o): Include MPI_SFLAGS. This is our bug 145.
33
34 2004-09-29  David Shaw  <dshaw@jabberwocky.com>
35
36         * mpicoder.c (mpi_read): If we must fail due to a oversize
37         (generally corrupt) MPI, make sure the number of bytes we read is
38         valid so we can skip the rest of the bad packet (in hopes the
39         whole stream isn't invalid).
40
41 2004-05-20  David Shaw  <dshaw@jabberwocky.com>
42
43         * longlong.h: Typo.
44
45         * mpi-pow.c (mpi_powm): s/exp/exponent/ to shutup a compiler
46         warning.  From Werner on stable branch.
47
48 2004-01-20  David Shaw  <dshaw@jabberwocky.com>
49
50         * hppa1.1/udiv-qrnnd.S: Alignment fix from Lamont Jones for
51         Debian.
52
53 2004-01-11  David Shaw  <dshaw@jabberwocky.com>
54
55         * config.links: OpenBSD 3.4 is now ELF, so use the proper
56         assembler code for that.  Use the portable C MPI code for OpenBSD
57         before 3.4, and remove the special i386-openbsd assembly
58         directory.
59
60         * Makefile.am: Add the portable C links to DISTCLEANFILES.  Noted
61         by Nelson H. F. Beebe.
62
63         * mpi-mpow.c (build_index): s/index/idx/ to avoid gcc warning.
64         From Werner on stable branch.
65
66         * longlong.h: Added PowerPC 64 bit code from GPM-4.1.2 but didn't
67         enable it yet.  From Werner on stable branch.
68
69 2003-12-29  David Shaw  <dshaw@jabberwocky.com>
70
71         * g10m.c: Dead code.  Remove.
72
73         * Makefile.am: Don't compile g10m.c.
74
75 2003-12-17  David Shaw  <dshaw@localhost.localdomain>
76
77         * mpiutil.c (mpi_set_opaque, mpi_get_opaque): Make the length of
78         an opaque MPI unsigned.
79
80 2003-12-04  David Shaw  <dshaw@jabberwocky.com>
81
82         * config.links: Show target in asm-syntax.h file and include
83         targets for K*BSD (GNU userland with BSD kernel).
84
85 2003-11-20  David Shaw  <dshaw@jabberwocky.com>
86
87         * config.links: sparc64 assembler doesn't work on FreeBSD or
88         OpenBSD either.
89
90 2003-05-26  David Shaw  <dshaw@jabberwocky.com>
91
92         * Makefile.am: Make use of AM_CFLAGS. (From wk on stable branch)
93
94 2003-05-24  David Shaw  <dshaw@jabberwocky.com>
95
96         * mpicoder.c, mpi-inline.h, mpi-inv.c, mpiutil.c, mpih-div.c,
97         mpi-internal.h, mpi-scan.c: Edit all preprocessor instructions to
98         remove whitespace before the '#'.  This is not required by C89,
99         but there are some compilers out there that don't like it.
100
101 2003-04-25  David Shaw  <dshaw@jabberwocky.com>
102
103         * config.links: Re-disable assembler on Darwin.  Darwin 6.5 broke
104         it again.
105
106 2003-04-15  Werner Koch  <wk@gnupg.org>
107
108         * longlong.h (umul_ppmm): Support SH3 and SH4.  Thanks to
109         kazuya.s@jp.yokogawa.com.
110
111 2002-11-16  David Shaw  <dshaw@jabberwocky.com>
112
113         * config.links: Use OpenBSD/NetBSD powerpc assembler code for
114         Darwin.  Successfully tested by Gordon Worley.
115
116 2002-10-17  Werner Koch  <wk@gnupg.org>
117
118         * config.links (powerpc-apple-darwin6.1): Disable assembler
119         due to non-working modules/as.  Suggested by Gordon Worley.
120
121 2002-10-02  David Shaw  <dshaw@jabberwocky.com>
122
123         * longlong.h: Some whitespace changes in HPPA to fix assembler
124         problems on HP-UX.  From David Ellement.
125
126 2002-09-20  Werner Koch  <wk@gnupg.org>
127
128         * mpicoder.c (do_get_buffer): Avoid zero length allocation.
129         Checked that all callers behave properly when NBYTES returns 0 as
130         the length of the allocated buffer.
131
132 2002-09-10  Werner Koch  <wk@gnupg.org>
133
134         * mpi-bit.c (mpi_normalize): Replaced the check for protected by
135         is_opaque.
136         (mpi_get_nbits): Removed the special case for protected MPIs.
137         * mpicoder.c (do_get_buffer): Likewise.
138         (mpi_print): Removed the nbit_info printing.
139
140 2002-09-03  Werner Koch  <wk@gnupg.org>
141
142         * mpicoder.c (mpi_set_buffer): Cast all left operands of a shift
143         to a larger type so that 16 bit CPUs don't suffer from an
144         overflow.  Suggested by TOGAWA Satoshi.
145
146 2002-08-24  David Shaw  <dshaw@jabberwocky.com>
147
148         * longlong.h: Remove space between \ and newline. gcc is
149         complaining.
150
151 2002-08-13  Werner Koch  <wk@gnupg.org>
152
153         * mpicoder.c (do_get_buffer): Don't remove leading zeros if the
154         MPI is marked as protected.
155
156 2002-08-02  Timo Schulz  <ts@winpt.org>
157
158         * mpicoder.c: Add a '\n' to all log_bug functions.
159         
160 2002-08-01  Werner Koch  <wk@gnupg.org>
161
162         * config.links: Added case for sparc64-netbsd. Suggested by
163         ww@styx.org.
164
165 2002-07-25  David Shaw  <dshaw@jabberwocky.com>
166
167         * config.links: Add special rule for OpenBSD on x86 to use special
168         i386-openbsd files.  OpenBSD (at least until version 3.1) has an
169         older assembler that won't work with the files in i386.
170
171 2002-07-24  Stefan Bellon  <sbellon@sbellon.de>
172
173         * longlong.h [__riscos__]: Removed #pragma which is not needed
174         anymore since the K&R multiline strings are gone.
175
176 2002-07-24  Werner Koch  <wk@gnupg.org>
177
178         * longlong.h: Replaced all K&R multiline strings by ISO ones for
179         the sake of modern compilers.  Suggested by Marco Parrone.
180
181 2002-05-10  Stefan Bellon  <sbellon@sbellon.de>
182
183         * mpiutil.c (mpi_alloc_like/mpi_debug_alloc_like): Added code
184         for M_DEBUG.
185
186 2002-04-18  Werner Koch  <wk@gnupg.org>
187
188         * i386/syntax.h (ALIGN): Removed parens from definition
189         * i386/mpih-add1.S, i386/mpih-sub1.S, i386/mpih-rshift.S,
190         i386/mpih-lshift.S: Minor syntax changes suggested by Mark Pettit
191         after comparing the files with those for GMP 4.
192         
193 2001-11-08  Werner Koch  <wk@gnupg.org>
194
195         * config.links (mpi_sflags): Add extra rule for sparc64-sun-solaris2.
196
197 2001-08-20  Werner Koch  <wk@gnupg.org>
198
199         * longlong.h [__riscos__]: Need a special pragma here.
200
201 2001-08-09  Werner Koch  <wk@gnupg.org>
202
203         * config.links: Added configuraton for powerpc-openbsd.  By Peter
204         Valchev
205
206 2001-07-09  Werner Koch  <wk@gnupg.org>
207
208         * config.links: Changed the way the list of files to be
209         symlinked is returned.
210
211 2001-05-27  Werner Koch  <wk@gnupg.org>
212
213         * hppa/, hppa1.1/, pa7100/ : Use .label command instead of labels
214         because there syntax changed.  By Matthew Wilcox.
215
216 2001-05-06  Werner Koch  <wk@gnupg.org>
217
218         * longlong.h: Fixes for ARM by Phil Blundell.
219
220 2001-04-17  Werner Koch  <wk@gnupg.org>
221
222         Updated copyright notices.
223
224 2001-03-24  Werner Koch  <wk@gnupg.org>
225
226         * mpi-mul.c (mpi_mul): Make sure that secret temporary results are
227         not stored in w.  Suggested by Florian Weimer.
228
229 2001-03-18  Werner Koch  <wk@gnupg.org>
230
231         * config.links: Use i386 code for i386.  According to tests by
232         Kevin Ryde the i586 code runs slow on i386 CPUs.  Ditto for i786.
233
234 2000-10-24  Werner Koch  <wk@gnupg.org>
235
236         * mips3/: Changed a few comments to C-style. By Jeff Long.
237
238 2000-10-13  Werner Koch  <wk@gnupg.org>
239
240         * mpi.h: Removed the inclusion of mpi-asm-defs.h because this
241         makes some trouble when doing a VPATH build.  configure now
242         takes care of it.
243         
244 2000-10-12  Werner Koch  <wk@gnupg.org>
245
246         * generic/mpi-asm-defs.h: New.
247         * mips3/mpi-asm-defs.h: New.
248         * config.links: Create a link to one of the above files.
249
250 Wed Jul 19 11:26:43 CEST 2000  Werner Koch  <wk@>
251
252         * config.links: Support for powerpc--netbsd by Gabriel Rosenkoetter.
253
254 Wed Mar 22 13:50:24 CET 2000  Werner Koch  <wk@openit.de>
255
256         * config.links: Add support for FreeBSD 5 and made the case stmt
257         looking nicer.  From Jun Kuriyama.
258
259 Fri Mar 17 17:50:25 CET 2000  Werner Koch  <wk@openit.de>
260
261         * config.links (sparc64-unknown-linux-gnu): use udic module.
262         From Adam Mitchell.
263
264 2000-03-14 12:03:56  Werner Koch  (wk@habibti.openit.de)
265
266         * Makefile.am: Do not use .s and .S files but a temp names, so that
267         OSes with caseinsensitive filenames do work.  From Frank Donahoe.
268
269 Tue Mar  7 18:45:31 CET 2000  Werner Koch  <wk@gnupg.de>
270
271         * mpih-mul.c (mpihelp_mul_karatsuba_case): It seems that the
272         untested part works fine.  Removed the debugging message.
273
274         * longlong.h (umul_ppmm): Fixes for ARM-4. By Sean MacLennan.
275
276         * config.links: Add support for NetBSD.
277
278 Thu Jan 13 19:31:58 CET 2000  Werner Koch  <wk@gnupg.de>
279
280         * mpi-internal.h (karatsuba_ctx): New.
281         * mpih-mul.c (mpihelp_release_karatsuba_ctx): New.
282         (mpihelp_mul_karatsuba_case): New.
283         (mpihelp_mul): Splitted to make use of the new functions.
284         * mpi-pow.c (mpi_powm): Make use of the new splitted function
285         to avoid multiple allocation of temporary memory during the
286         karatsuba operations.
287
288         * mpi_mpow.c: Removed the unused Barrett code.
289
290 Sun Dec 19 15:22:26 CET 1999  Werner Koch  <wk@gnupg.de>
291
292         * power/ : Converted more comments to C comments because some AS
293         complain about ' in comments.
294
295 Thu Dec 16 10:07:58 CET 1999  Werner Koch  <wk@gnupg.de>
296
297         * Makefile.am: c/SFLAGS/ASFLAGS/. This has only been used by the
298         powerpc and actually never passed the -Wa,foo to the cc.
299
300 Thu Dec  9 10:31:05 CET 1999  Werner Koch  <wk@gnupg.de>
301
302         * power/: Add all files from GMP for this CPU.
303
304         * config.links:  Support for BSDI 4.x. By Wayne Chapeskie.
305         (sparc8): Made the search path the same as sparc9
306
307         * mpih-div.c (mpihelp_divrem): The MPN_COPY_DECR copied one
308         elemnat too many.  This is gmp2.0.2p9.txt patch.
309
310 Sat Oct  9 20:34:41 CEST 1999  Werner Koch  <wk@gnupg.de>
311
312         * Makefile.am:  Removed libtool.
313
314 Mon Aug 30 20:38:33 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
315
316         * config.links: Add case label for DJGPP
317
318 Wed Jul 14 19:42:08 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
319
320
321         * Makefile.am: Use .s files as temporaries, disabled other .S rules.
322
323 Wed Jul  7 13:08:40 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
324
325
326         * mpicoder.c (g10_log_mpidump): New.
327
328         * Makefile.am: Support for libtool.
329
330 Fri Jul  2 11:45:54 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
331
332
333         * mpi-bit.c (mpi_lshift_limbs,mpi_rshift_limbs): New.
334         * mpi-mpow.c (barrett_mulm): New but diabled.
335
336 Tue Jun  1 16:01:46 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
337
338         * config.links (i[56]86*-*-freebsdelf*): New.
339
340 Sun May 23 14:20:22 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
341
342         * config.links (sysdep.h): Not any more conditionally created.
343
344 Tue May  4 15:47:53 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
345
346         * mpiutil.c (mpi_alloc_like): New.
347
348 Mon Apr 26 17:48:15 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
349
350         * mpih-add.c, mpih-sub.c: Removed
351         * mpi-inline.c: New.
352         * mpi-inline.h: Make it usable by mpi-inline.c.
353
354 Sun Apr 18 10:11:28 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
355
356         * mpih-mul.c (mpihelp_mul_n): Fixed use of memory region.
357         (mpihelp_mul): Ditto.
358
359 Wed Apr  7 20:51:39 CEST 1999  Werner Koch  <wk@isil.d.shuttle.de>
360
361         * Makefile.am: Explicit rules to invoke cpp on *.S
362
363 Mon Mar  8 20:47:17 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
364
365         * config.links: Take advantage of the with_symbol_underscore macro.
366         Add support for freebsd 4.
367
368 Wed Feb 24 11:07:27 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
369
370         * mips3/mpih-sub1.S: Removed left over junk in last line. (Should I
371         blame me or my editor?).
372
373 Sat Feb 13 12:04:43 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
374
375         * Makefile.am: Removed the +=. Add MPI_OPT_FLAGS.
376
377 Sat Jan  9 16:02:23 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
378
379         * mpi-cmp.c (mpi_cmp_ui): Normalized the arg.
380
381 Thu Jan  7 18:00:58 CET 1999  Werner Koch  <wk@isil.d.shuttle.de>
382
383         * mpi-bit.c (mpi_normalize): New.
384         (mpi_get_nbits): Normalize the MPI.
385         * mpi-bit.c (mpi_cmp): Normalize the MPI before the compare.
386
387
388 Tue Dec  8 13:15:16 CET 1998  Werner Koch  <wk@isil.d.shuttle.de>
389
390         * config.links: Moved the case for powerpc*linux
391         * powerpcp32/*.S: Removed some underscores.
392
393 Thu Nov 26 07:27:52 1998  Werner Koch  <werner.koch@guug.de>
394
395         * config.links: Support for ppc with ELF
396         * powerpc32/syntax.h: New.
397         * powerpc32/*.S: Applied ELF patches (glibc patches)
398
399 Tue Nov 10 19:31:37 1998  Werner Koch  (wk@isil.d.shuttle.de)
400
401         * power*/ : Started with stuff for PPC
402         * config.links: Some stuff for PPC.
403         * generic/udiv-w-sdiv.c: New but disabled.
404
405 Tue Oct 27 12:37:46 1998  Werner Koch  (wk@isil.d.shuttle.de)
406
407         * config.links (freebsd): Fixes for FreeBSD 3.0
408
409 Wed Oct 14 09:59:30 1998  Werner Koch  (wk@isil.d.shuttle.de)
410
411         * config.links (freebsd): ELF patches from Jun Kuriyama.
412
413 Thu Oct  8 13:28:17 1998  Werner Koch  (wk@isil.d.shuttle.de)
414
415         * mpi-mpow.c (mpi_mulpowm): Fixed mem leak (m_free/mpi_free).
416
417 Thu Sep 17 18:08:50 1998  Werner Koch  (wk@(none))
418
419         * hppa1.1/udiv-qrnnd.S: Fix from Steffen Zahn for HPUX 10.20
420
421 Thu Aug  6 16:39:28 1998  Werner Koch,mobil,,,  (wk@tobold)
422
423         * mpi-bit.c (mpi_set_bytes): Removed.
424
425 Wed Aug  5 15:11:12 1998  Werner Koch  (wk@(none))
426
427         * mpicoder.c (mpi_read_from_buffer): New.
428
429         * mpiutil.c (mpi_set_opaque): New.
430         (mpi_get_opaque): New.
431         (mpi_copy): Changed to support opauqe flag
432         (mpi_free): Ditto.
433
434 Sat Jul  4 10:11:11 1998  Werner Koch  (wk@isil.d.shuttle.de)
435
436         * mpiutil.c (mpi_clear): Reset flags.
437         (mpi_set): Ditto.
438         (mpi_alloc_secure): Set flag to 1 and not ored the 1 in, tsss..
439
440 Fri Jun 26 11:19:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
441
442         * mpiutil.c (mpi_alloc): set nbits to 0.
443         (mpi_alloc_secure): Ditto.
444         (mpi_clear): Ditto.
445
446 Thu Jun 25 11:50:01 1998  Werner Koch  (wk@isil.d.shuttle.de)
447
448         * mips3/*.S: New
449
450 Mon May 18 13:47:06 1998  Werner Koch  (wk@isil.d.shuttle.de)
451
452         * config.links: split mpih-shift into mpih-[lr]shift and
453         changed all implementations.
454         * mpi/alpha: add some new assembler stuff.
455
456 Wed May 13 11:04:29 1998  Werner Koch  (wk@isil.d.shuttle.de)
457
458         * config.links: Add support for MIPS
459
460 Thu Apr  9 11:31:36 1998  Werner Koch  (wk@isil.d.shuttle.de)
461
462         * mpicoder.c (mpi_get_secure_buffer): New.
463
464 Wed Apr  8 09:44:33 1998  Werner Koch  (wk@isil.d.shuttle.de)
465
466         * config.links: Applied small fix from Ulf Möller.
467
468 Mon Apr  6 12:38:52 1998  Werner Koch  (wk@isil.d.shuttle.de)
469
470         * mpicoder.c (mpi_get_buffer): Removed returned leading zeroes
471         and changed all callers.
472
473 Tue Mar 10 13:40:34 1998  Werner Koch  (wk@isil.d.shuttle.de)
474
475         * mpi-bit.c (mpi_clear_highbit): New.
476
477 Mon Mar  2 19:29:00 1998  Werner Koch  (wk@isil.d.shuttle.de)
478
479         * Makefile.am (DISTCLEANFILES): New
480
481 Thu Feb 26 06:48:54 1998  Werner Koch  (wk@isil.d.shuttle.de)
482
483         * config.links (X86_BROKEN_ALIGN): Added for some systems.
484
485 Mon Feb 23 12:21:40 1998  Werner Koch  (wk@isil.d.shuttle.de)
486
487         * mpi/m68k/mpih-shift.S (Lspecial): Changed duplicate symbol.
488
489 Mon Feb 16 13:00:27 1998  Werner Koch  (wk@isil.d.shuttle.de)
490
491         * config.links : Add detection of m68k cpus
492
493
494
495  Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
496
497  This file is free software; as a special exception the author gives
498  unlimited permission to copy and/or distribute it, with or without
499  modifications, as long as this notice is preserved.
500
501  This file is distributed in the hope that it will be useful, but
502  WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
503  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
504
505