x
[heimdal.git] / lib / hcrypto / ChangeLog
blobf8e7d4e7ccbb33d65374752e3a830b9755c0dfca
1 2008-04-18  Love Hörnquist Åstrand  <lha@it.su.se>
3         * des.c: DES is withdrawn.
5         * des.c: Document using doxygen.
7         * des.c: History of DES.
9         * doxygen.c: History of hcrypto.
11         * test_rand.c: do a head vs tail test on the random buffer.
13         * test_crypto.in: Use --file to test_rand.
15         * rand.c: Document, implement RAND_set_rand_engine().
16         
17         * doxygen.c: Add reference to DES, more quick links.
19         * rnd_keys.c: Reimplement using RAND_ interface.
21         * des.h: Undeprecate DES_new_random_key.
23         * des.c: Add documentation.
25 2008-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
27         * camellia-ntt.h: Move the typedef u<num> to camellia-ntt.h header
28         file.  Use u32 to define KEY_TABLE_TYPE, avoids warning on
29         platfors where u32 is not unsigned int.
31         * camellia-ntt.c: Move the typedef u<num> to camellia-ntt.h
32         header file.
34         * camellia.h: Drop need to camellia-ntt.h by including some more
35         defines.
37 2008-04-11  Love Hörnquist Åstrand  <lha@it.su.se>
38         
39         * rnd_keys.c: deprecated.
40         
41         * des.h: c++ wrappers + deprecated.
43         * aes.h: c++ wrappers
45         * des.h: c++ wrappers + deprecated
47         * rnd_keys.c: Use matching prototypes, prompted by bug report by
48         David Rosenstrauch.
50 2008-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
52         * camellia.h: Drop unused defined that originates from aes.
53         
54 2008-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
56         * Makefile.am: Add extra files missing from dist.
58 2007-12-30  Love Hörnquist Åstrand  <lha@it.su.se>
60         * rsa.c: ENGINE_get_default_RSA can return NULL.
62         * dh.c: more doxygen.
64 2007-12-28  Love Hörnquist Åstrand  <lha@it.su.se>
66         * evp.c: Add last of the doxygen documentation for functions in
67         this module.
69         * evp.c: complete the EVP_MD functions doxygen.
71 2007-12-11  Love Hörnquist Åstrand  <lha@it.su.se>
73         * version-script.map: export RSA_gmp_method.
75         * doxygen.c: More documentation.
77         * rsa.h: add RSA_gmp_method
79         * rsa-gmp.c: RSA implementation written using GMP.
81         * test_dh.c: Test of DH by Matthias Koenig.
83 2007-12-09  Love Hörnquist Åstrand  <lha@it.su.se>
85         * bn.h (BN_is_negative): make argument const.
87 2007-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
89         * rand.c: Can't call getpwuid(getuid()) at all since that causes
90         recursive lookups. Pointed out by Hai Zaar.
92 2007-08-16  Love Hörnquist Åstrand  <lha@it.su.se>
94         * test_cipher.c: Use test from camellia samples.
96         * version-script.map: Export camellia.
98         * test_cipher.c: Make camellia-128-cbc tests pass.
100 2007-08-07  Love Hörnquist Åstrand  <lha@it.su.se>
102         * test_cipher.c: Sprinkle EVP cipher names.
103         
104 2007-07-30  David Love  <fx@gnu.org>
106         * camellia-ntt.c: Include <krb5-types.h>
107         
108 2007-07-24  Love Hörnquist Åstrand  <lha@it.su.se>
109         
110         * Add Camellia.
112 2007-07-10  Love Hörnquist Åstrand  <lha@it.su.se>
114         * Makefile.am: New library version.
116 2007-06-30  Love Hörnquist Åstrand  <lha@it.su.se>
118         * hmac.c (HMAC_Init_ex): also zero out key material on re-init.
120 2007-06-20  Love Hörnquist Åstrand  <lha@it.su.se>
122         * rand.c: Default to fortuna due to weired /dev/*random that
123         failes to deliver random data for us in hi load situations.
125         * rand-fortuna.c: Reseed the random generator now and then from
126         external sources.
128 2007-06-19  Love Hörnquist Åstrand  <lha@it.su.se>
130         * rand-egd.c: Avoid stoping unrelated memory.
132 2007-06-18  Love Hörnquist Åstrand  <lha@it.su.se>
134         * rand-fortuna.c: Use /etc/shadow, not /dev/shadow, pointed out by
135         Andrew Bartlett
137         * Makefile.am: add rand-timer.c
139         * rand-fortuna.c: Fall back to gattering data from timer and
140         secret files, this is really the last resort.
142         * rand-timer.c: Pick up timing diffrences in the timeing info from
143         realtime timer, only in use as a last resort.
145         * version-script.map: Add hc_RAND_timer_method.
146         
147 2007-06-10  Love Hörnquist Åstrand  <lha@it.su.se>
149         * test_bn.c: Add <rand.h>.
151         * test_crypto.in: Test for random device before running the tests.
153         * test_engine_dso.c: Test for random device.
155         * test_bn.c (test_BN_rand): skip this test if there is no random
156         device
158 2007-06-07  Love Hörnquist Åstrand  <lha@it.su.se>
160         * Makefile.am: Include more ui.[ch] in libbctest.
162         * version-script.map: Unexport _hc_DES_ipfp_test now there is a
163         separate test lib.
165         * Makefile.am: Build library libhctest.la for testing and link
166         with that when testing.
168         * version-script.map: export _hc_DES_ipfp_test
170 2007-06-03  Love Hörnquist Åstrand  <lha@it.su.se>
172         * imath: new update from Michael Fromberger
174         * test_imath.c: Try to find ABR in mp_int_mul.
176         * engine.c: Don't try to load gmp module.
177         
178 2007-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
180         * test_bn.c: Plug memory leak.
181         
182 2007-05-31  Love Hörnquist Åstrand  <lha@it.su.se>
183         
184         * imath/imath.[ch]: New snapshot for Michael Fromberger, lets see if
185         this corrupts memory less.
186         
187 2007-05-30  Love Hörnquist Åstrand  <lha@it.su.se>
188         
189         * version-script.map: Don't prefix all symbols with _
190         
191 2007-05-10  Love Hörnquist Åstrand  <lha@it.su.se>
193         * test_pkcs12.c: test the difference between "" and NULL password.
195         * test_pkcs12.c: one more pkcs12-pbe-s2k check
196         
197 2007-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
199         * Add version-script
201         * test_crypto.in: try generate a couple of rsa keys of
202         diffrent (random) sizes, spelling.
204         * test_rsa.c: try generate a couple of rsa keys of
205         diffrent (random) sizes.
206         
207 2007-04-19  Love Hörnquist Åstrand  <lha@it.su.se>
208         
209         * mdtest.c: stop leaking memory
211         * test_imath.c: fix warnings, make test into function.
213         * test_imath.c: shortest program causing the problem.
215         * test_imath.c: basic imath test
216         
217 2007-04-18  Love Hörnquist Åstrand  <lha@it.su.se>
218         
219         * test_cipher.c (test_cipher): avoid leaking memory
220         
221 2007-04-17  Love Hörnquist Åstrand  <lha@it.su.se>
222         
223         * rsa.c: plug memory leak
224         
225 2007-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
227         * Makefile.am: CLEANFILES += test.file
228         
229 2007-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
230         
231         * Makefile.am: Add randi.h.
233 2007-04-11  Love Hörnquist Åstrand  <lha@it.su.se>
235         * rsa.c: spelling.
236         
237 2007-02-01  Love Hörnquist Åstrand  <lha@it.su.se>
239         * rand.c: Name the random file ~/.rnd, this is the same as
240         OpenSSL.
241         
242 2007-01-31  Love Hörnquist Åstrand  <lha@it.su.se>
244         * rand-egd.c: Make get_bytes static.
246         * rand.c (RAND_write_file): default to failure.
247         
248 2007-01-30  Love Hörnquist Åstrand  <lha@it.su.se>
250         * rand.c: Implement RAND_file_name.
252         * test_rand.c: test RAND_file_name().
254         * rand.c: Provide dummy implementation of RAND_file_name.
256         * rand.h: add RAND_file_name
257         
258 2007-01-21  Love Hörnquist Åstrand  <lha@it.su.se>
259         
260         * Makefile.am: clean more files
262         * rand-egd.c: access private functions though the RAND_METHOD
263         switch, move global egd function to rand-egd.c
265         * rand-fortuna.c: access private functions though the RAND_METHOD
266         switch
268         * rand-unix.c: unexport private functions.
270         * randi.h: Unexport internal functions.
272         * rand.c: access private functions though the RAND_METHOD switch,
273         don't truncate the seed-file, move global egd function to
274         rand-egd.c
276         * test_crypto.in: add basic random tests
278         * rand-egd.c: SGI cc doesn' like return void_returning_function();
279         in a void returning function.
280         
281 2007-01-20  Love Hörnquist Åstrand  <lha@it.su.se>
283         * test_rand.c: Allow select rand method.
285         * rand-unix.c: expose _hc_rand_unix_status
286         
287         * randi.h: expose _hc_rand_unix_status and the internal
288         RAND_METHODs
290         * rand.c: Implement RAND_load_file and RAND_write_file.  Select
291         UNIX random device if available, otherwise use Fortuna.
293         * Add EGD/PRNGD support
295 2007-01-17  Love Hörnquist Åstrand  <lha@it.su.se>
297         * fortuna: Add fortuna based on Marko Kreen's pgcrypt, no enabled yet
299 2007-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
301         * test_rsa.c: if RAND is unhappy, don't run the tests.
303         * test_engine_dso.c: if RAND is unhappy, don't run the tests.
305         * imath/imath.c: Update to imath-1.8 from Michael Fromberger
306         
307         Fixed a bug in s_udiv() affecting the computation of quotient
308         digits.  Thanks to Love Åstrand for isolating this bug.  Also in
309         this release, defining USELLONG=Y or USELLONG=N on the command
310         line for make will switch support for the "long long" data type on
311         or off without having to edit the Makefile.  The default is still
312         to permit use of "long long", even though the type is not standard
313         ANSI C90.
315         * imath/imath.c (s_udiv): Allocate one more for q, remove debug
316         printfs
317         
318 2007-01-10  Love Hörnquist Åstrand  <lha@it.su.se>
319         
320         * imath/imath.c (s_udiv): make a copy of a and b before we start
321         to make sure there is something un-tainted to print in cause of
322         failure. XXX remove this delta
323         (s_embar): make static
324         
325 2007-01-09  Love Hörnquist Åstrand  <lha@it.su.se>
327         * rsa.c: Correct the test if the rsa is a complete RSA private
328         key.
329         
330 2007-01-08  Love Hörnquist Åstrand  <lha@it.su.se>
331         
332         * imath/imath.c: More verbose debugging in case of assertion
333         failure. XXX temporary for AIX problem.
334         
335 2007-01-06  Love Hörnquist Åstrand  <lha@it.su.se>
337         * rsa-imath.c: Fix a silly typo, and with that enable CRT since
338         now it works.
340         * rsa-imath.c: With this crt works, but something is wrong in the
341         key generation, so keep it turned off for now.
343         * test_rsa.c: Allow testing effect of key-blinding
345         * test_rsa.c: Add timing info to rsa keygen.
346         
347         * rsa-imath.c: don't include <imath/rsamath.h>
348         
349 2007-01-05  Love Hörnquist Åstrand  <lha@it.su.se>
350         
351         * imath: prune off stuff we dont use
353         * imath/import.sh: Prune off stuff we don't use from imathsource
355         * Makefile.am: Prune off stuff we don't use from imathsource
357         * rsa-imath.c: Use mp_int_exptmod directly.
359         * imath/iprime.c: Use a larger table of small primes, cut down
360         genenration in best cases to half compared to using a small table.
362         * rsa.h: add RSA_FLAG_NO_BLINDING
364         * rsa-imath.c: Add keyblinding, add a commented out CRT based RSA.
366         * rsa.c: Add iqmp.
368 2007-01-04  Love Hörnquist Åstrand  <lha@it.su.se>
370         * rsa.c: add missing ;
372         * rsa.c: Add i2d_RSAPrivateKey.
374         * rsa.h: Add i2d_RSAPrivateKey.
376         * test_rsa.c: test RSA_generate_key_ex
378         * rsa-imath.c: Add imath_rsa_generate_key.
379         
380 2006-12-31  Love Hörnquist Åstrand  <lha@it.su.se>
382         * rsa.c: add RSA_generate_key_ex
384         * rsa.h: add RSA_generate_key_ex
385         
386 2006-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
387         
388         * Makefile.am: CLEANFILES += test_crypto
389         
390 2006-12-06  Love Hörnquist Åstrand  <lha@it.su.se>
392         * Makefile.am: Add rsakey.der to EXTRA_DIST.
393         
394 2006-12-05  Love Hörnquist Åstrand  <lha@it.su.se>
396         * Makefile.am: Add test_crypto.in to EXTRA_DIST.
398         * test_crypto.in: Add more spaces to allow sh to parse this
400         * test_rsa.c: Explain what the fixed "sha1" checksum test tries to
401         test.
402         
403         * test_crypto.in: test rsa, dh and engine code
404         
405 2006-12-04  Love Hörnquist Åstrand  <lha@it.su.se>
407         * Makefile.am: rsa and crypto engine test cases
409         * test_rsa.c: Make faster and less verbose
411         * rsakey.der: test rsa key
413         * test_rsa.c: Test rsa operations
415         * rsa-imath.c: Fix the rsa-decrypt failed case that been hauting
416         me for a while.
417         
418 2006-12-02  Love Hörnquist Åstrand  <lha@it.su.se>
420         * rsa-imath.c: Use mp_int_to_binary to encode bignums
422         * rsa-imath.c: Check if header is there
423         
424 2006-11-27  Love Hörnquist Åstrand  <lha@it.su.se>
425         
426         * rsa-imath.c: Return -1 for failure.
428         * rsa-imath.c: Its ok with smaller signatures.
430         * rsa-imath.c: Split error codes for now
431         
432 2006-10-22  Love Hörnquist Åstrand  <lha@it.su.se>
434         * rsa.c: Try to not leak memory.
435         
436 2006-10-21  Love Hörnquist Åstrand  <lha@it.su.se>
438         * rand-unix.c (unix_bytes): read until the other side give us all
439         or fail.
441         * imath: import imath-1.7, fixes buffer overrun problems
443         * rsa.c (RSA_free): free the whole key
445         * test_engine_dso.c: Add more dh tests.
447 2006-10-20  Love Hörnquist Åstrand  <lha@it.su.se>
449         * imath/imath.c: Allocate more bits.
451         * dh-imath.c (dh_compute_key): fix signness test
453         * dh-imath.c: Try harder to generate a good keypair.
455         * dh-imath.c: Return -1 dh_compute_key on failure, pointed out by
456         Olga Kornievskaia.
457         
458 2006-10-19  Love Hörnquist Åstrand  <lha@it.su.se>
460         * Makefile.am: Add hash.h and des-tables.h.
462         * dh.c (DH_compute_key): return -1 on bad public key.
464         * rsa.c: remove stray ;
466         * engine.c: Does function typecasts instead of void * type-casts.
468         * evp.c: Does function typecasts instead of void * type-casts.
469         
470 2006-10-16  Love Hörnquist Åstrand  <lha@it.su.se>
471         
472         * Makefile.am: add rand-unix.c
474         * rand.c: Move out rand-unix functions from the core lib.
476         * rand-unix.c: Move out rand-unix functions from the core lib.
477         
478 2006-10-15  Love Hörnquist Åstrand  <lha@it.su.se>
479         
480         * hmac.c (HMAC_CTX_cleanup): destroy the EVP_MD_CTX, so it will be
481         freed.
482         
483 2006-10-14  Love Hörnquist Åstrand  <lha@it.su.se>
485         * bn.c: Drop heim_any.h, prefix der primitives with der_
487         * rsa.c: Drop heim_any.h.
488         
489 2006-10-11  Love Hörnquist Åstrand <lha@it.su.se>
490         
491         * rsa.c (RSA_free): Call the meth->finish before releasing the
492         engine.
493         
494 2006-10-06  Love Hörnquist Åstrand  <lha@it.su.se>
496         * imath/imath.c: Cast argument to ctype(3) functions to (unsigned
497         char).
499         * imath/imrat.c: Cast argument to ctype(3) functions to (unsigned
500         char).
501         
502 2006-09-22  Love Hörnquist Åstrand  <lha@it.su.se>
504         * ui.c (read_string): Try to not call signaction for signal 0 and
505         use NSIG if it exists to determin how many signals there exists,
506         also, only restore those signalhandlers that we got out.
507         
508         Bug reported by and patch tested by Harald Barth.
509         
510 2006-09-15  Love Hörnquist Åstrand  <lha@it.su.se>
512         * rsa-imath.c: Add commeted out test that exponent is > 3
513         
514 2006-05-13  Love Hörnquist Åstrand  <lha@it.su.se>
516         * bn.c (BN_rand): avoid shadowing.
517         
518 2006-05-12  Love Hörnquist Åstrand  <lha@it.su.se>
520         * rsa-imath.c: Fix the last one of the asserts.
521         
522 2006-05-08  Love Hörnquist Åstrand  <lha@it.su.se>
524         * rand.c (get_device_fd): use /dev/urandom first.
526         * rctest.c: Less "pointer targets in passing argument differ in
527         signedness" warnings.
529         * rc2test.c: Less "pointer targets in passing argument differ in
530         signedness" warnings.
531         
532 2006-05-07  Love Hörnquist Åstrand  <lha@it.su.se>
533         
534         * rsa-imath.c: Fix a off by one.
535         
536         * test_engine_dso.c: print the lengths when they don't match.
538         * engine.c (ENGINE_load_builtin_engines): use RSA_imath_method for
539         the building engine.
541         * rsa.h: expose RSA_imath_method
543         * rsa.c (RSA_check_key): Do sign/verify instead.
545         * dsa.c: rename the DSA_METHOD
547         * dh.c: rename the DH_METHOD
549         * dh-imath.c: rename the DH_METHOD
551         * rsa.c: Default to use rsa-imath.
553         * Makefile.am: Add rsa-imath.c to libhcrypto
555         * rsa-imath.c: Add RSA support using imath.
556         
557 2006-05-06 Love Hörnquist Åstrand <lha@it.su.se>
558         
559         * imath: Add imath-1.1.9
561         * dh.h: Expose DH_imath_method.
563         * Makefile.am: Add imath source, add test_engine_dso to TESTS.
565         * engine.c: Lets say we have RSA_null_method(), not really
566         useable, but still.
568         * test_engine_dso.c: If there are no arguments, use the internal
569         engine.
571         * engine.h: Cpp rename some ENGINE symbols.
573         * engine.c (ENGINE_load_builtin_engines): Load the internal
574         engine.
576         * dh.c: Default to use DH-imath.
578         * dh.c (DH_check_pubkey): describe what the function do
580 2006-05-05  Love Hörnquist Åstrand  <lha@it.su.se>
581         
582         * dh.c (DH_compute_key): check return status value from
583         DH_check_pubkey
585         * Rename u_intXX_t to uintXX_t
586         
587 2006-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
589         * pkcs5.c: include <krb5-types.h>
591         * evp.c: Sprinkel some assertions.
593         * des.c: Move assertion and add another restriction, used as hint
594         to beam that its ok
595         
596 2006-04-23  Love Hörnquist Åstrand  <lha@it.su.se>
598         * rsa.c (RSA_check_key): don't do any checking if there is no
599         private key
601         * engine.c (add_engine): reassign engines variable after realloc
602         
603 2006-04-21  Love Hörnquist Åstrand  <lha@it.su.se>
605         * evp.h: Add EVP_get_cipherbyname, unbreak EVP_BytesToKey
607         * evp.h: Add prototype for EVP_BytesToKey
609         * evp.c: Add stub for EVP_BytesToKey
610         
611 2006-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
612         
613         * dh.h: Add cpp-rename for DH_check_pubkey
614         
615 2006-04-17  Love Hörnquist Åstrand  <lha@it.su.se>
617         * rand.h: Add more RAND functions.
619         * rand.c: Split out unix /dev/random to a RAND_METHOD
621         * engine.h: add RAND support
623         * engine.c: add RAND support
625         * evp.h: s/rc4_64/rc2_64/
627         * rand.c: Add RAND_METHOD and some associated functions.
629         * rand.h: Add RAND_METHOD and some associated functions.
631         * test_bn.c: Test BN_rand
632         
633 2006-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
635         * engine.c (ENGINE_by_dso): less printf
637         * rsa.h (i2d_RSAPublicKey): fix prototype
639         * rsa.c (i2d_RSAPublicKey): fix prototype
640         
641 2006-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
643         * evp.h: Add EVP_rc2_64_cbc
645         * evp.c: Add EVP_rc2_64_cbc
647         * evp.h: Add SHA-256 symbols.
649         * evp.c: Add SHA-256.
651         * sha.h: Add SHA-256 symbols.
653         * mdtest.c: Test SHA-256.
655         * sha256.c: Inital (naive) SHA-256 implementation.
656         
657 2006-04-14 Love Hörnquist Åstrand <lha@it.su.se>
659         * des.c (DES_cfb64_encrypt): add asserts that the *num pointers is
660         >= 0, because if it is, its a programmer error.
661         
662 2006-04-09  Love Hörnquist Åstrand  <lha@it.su.se>
664         * rc2.c (RC2_set_key): abort on erroneous input (len <= 0) size
665         that will case out out bound indexing, and its invalid input.
667         * rsa.c: Make compile again.
668         
669 2006-04-03  Love Hörnquist Åstrand  <lha@it.su.se>
671         * rsa.c: Implement i2d_RSAPublicKey
673         * rsa.h: Add i2d_RSAPublicKey
674         
675 2006-03-07 Love Hörnquist Åstrand <lha@it.su.se>
677         * Makefile.am: EVP interface depends on dlopen, add it to LIBFLAGS
678         
679 2006-02-28  Love Hörnquist Åstrand  <lha@it.su.se>
680         
681         * Makefile.am: Add pkcs5 files.
683         * test_pkcs5.c: Testcases for pkcs5 pbe2.
685         * pkcs5.c (PKCS5_PBKDF2_HMAC_SHA1): new function.
687         * hmac.c: Digest key when it exceeds block size, not when it
688         exceeds the size of the output block.
689         
690 2006-02-16  Love Hörnquist Åstrand  <lha@it.su.se>
692         * rand.c (RAND_bytes): Don't abort() on failure, return error.
694         * bn.c (BN_rand): check return value from RAND_bytes
695         
696 2006-01-18  Love Hörnquist Åstrand  <lha@it.su.se>
698         * dh.c (DH_compute_key): check public key
700         * dh.h: Add DH_check_pubkey and defines it uses.
702         * dh.c (DH_check_pubkey): New function.
704         * bn.c: Remove unused fragment.
706         * test_bn.c: Compare numbers with BN_cmp().
707         
708 2006-01-17  David Love  <fx@gnu.org>
710         * bn.c: Include <limits.h>.
711         
712 2006-01-13  Love Hörnquist Åstrand  <lha@it.su.se>
714         * *.h: use #include <hcrypto/...>
716         * Makefile.am: provide a symlink so the directory hcrypto/ seems
717         to exists
719         * engine.h: Expose dsa symbols
721         * Makefile.am: Rename library to hcrypto and install headerfiles
722         in hcrypto/.
724         * test_pkcs12.c: Test for PKCS12_key_gen.
726         * hmac.h: Drop HMAC_CTX_create and HMAC_CTX_destroy.
728         * engine.c (ENGINE_add_conf_module): Also load DH
730         * dh.h: Reorder includes to avoid compile errors, provide
731         DH_new_method().
733         * dh.c: Indent.
735         * bn.c: BN_get_negative was really named BN_is_negative, a comment
736         confused me.
738         * bn.h: BN_get_negative was really named BN_is_negative, a comment
739         confused me.
741         * pkcs12.h: Add PKCS12_key_gen().
743         * pkcs12.c: Add PKCS12_key_gen().
745         * Makefile.am: Add test_cipher, test_pkcs12, add pkcs12.[ch].
747         * evp.c: Rename rc2_40_cbc internal variable to something better.
748         Unbreak des-ede3-cbc.
749         
750 2006-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
752         * test_bn.c: Test BN_uadd.
754         * bn.c (BN_rand): don't leak memory on failure, catch malloc(0)
755         case
756         
757         * bn.c (BN_rand): clear the bits above the bits that user
758         requested.
759         (BN_uadd): new function.
760         
761         * bn.h (BN_uadd): new function.
762         
763 2006-01-10  Love Hörnquist Åstrand <lha@it.su.se>
765         * evp.c (EVP_CIPHER_CTX_cleanup): clean up less aggressively
767         * Makefile.am (check_PROGRAMS): add test_hmac
769         * test_hmac.c: Simple regression test for HMAC.
771         * hmac.c: Make hmac work.
773         * evp.c: return the right blocksize for digests.
774         
775 2006-01-09  Love Hörnquist Åstrand <lha@it.su.se>
777         * test_engine_dso.c: Add test for DH.
779         * dh.c: Add DH_new_method, add ENGINE refcounting.
781         * engine.[ch]: Add ENGINE_set_default_DH and ENGINE_get_default_DH
783         * test_engine_dso.c: Add test for RSA encryption.
784         
785 2006-01-08  Love Hörnquist Åstrand  <lha@it.su.se>
786         
787         * test_engine_dso.c: Add test for RSA.
789         * implement enough glue to support OpenSSLs EVP, RSA, DSA, DH,
790         HMAC, RAND and ENGINE interfaces for use in hx509. rename all
791         symbols to start with hc_ to avoid clobbering namespaces. contains
792         no RSA/DH/DSA code, just glue to support using dynamic
793         ENGINE. hx509 supports this via pkcs11 and there is a gmp ENGINE
794         module supporting RSA. Also contains a MD2 digest for completion.
796 2005-07-20  Love Hörnquist Åstrand  <lha@it.su.se>
798         * des.c,des.h,rnd_keys.c: change unsigned char * to void *
800 2005-06-30  Love Hörnquist Åstrand  <lha@it.su.se>
802         * rnd_keys.c: const poision for unwriteable strings
804 2005-06-19  Love Hörnquist Åstrand  <lha@it.su.se>
806         * des.c,aes.c,rc2.c: Rename parameter, as encrypt shadows a
807         global, from Andrew Bartlett
809 2005-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
811         * rnd_keys.c: Include <stdlib.h> for srandom/random.
813 2005-05-29  Love Hörnquist Åstrand  <lha@it.su.se>
815         * des.c (DES_cbc_cksum): init u to make sure it have a value in
816         case of the empty in data
818         * destest.c: add test for the empty password ""
820 2005-05-27  Love Hörnquist Åstrand  <lha@it.su.se>
822         * rctest.c (cipher3): used unsigned char to avoid problems with
823         platforms using "signed char"
824         
825 2005-05-13  Love Hörnquist Åstrand  <lha@it.su.se>
827         * rc2.c: use unsigned char to avoid signess warning
829         * des.c: use unsigned char to avoid signess warning
831         * aes.c (AES_cbc_encrypt): use unsigned char to avoid signess
832         warning
834 2005-05-03  Dave Love  <fx@gnu.org>
836         * mdtest.c: Fix typo for HAVE_STDLIB_H.
838 2005-05-03  Love Hörnquist Åstrand  <lha@it.su.se>
840         * rnd_keys.c: Enabled to build on cygwin, based on patch from
841         David Love <fx@gnu.org>
843 2005-05-02  Dave Love  <fx@gnu.org>
845         * mdtest.c: Include <krb5-types.h>.
847 2005-04-30  Love Hörnquist Åstrand  <lha@it.su.se>
849         * ui.c: Include <des.h>.
850         (UI_UTIL_read_pw_string): make the prompt argument const.
852         * des.h (UI_UTIL_read_pw_string): make the prompt argument const
854         * ui.c (UI_UTIL_read_pw_string): remove unused variable plen
855         
856         * des.c: replace <strings.h> with <string.h>
857         
858 2005-04-29  Dave Love  <fx@gnu.org>
860         * Makefile.am: Add LIB_roken.
861         
862 2005-04-27  Dave Love  <fx@gnu.org>
864         * sha.c: Include hash.h first.
865         
866         * md4.c: Include hash.h first.
867         
868         * md5.c: Include hash.h first.
869         
870         * hash.h: Include krb5-types.h
871         
872 2005-04-26  Dave Love  <fx@gnu.org>
874         * mdtest.c: Maybe include stdlib.h
875         
876 2005-04-10  Love Hörnquist Åstrand  <lha@it.su.se>
878         * sha.h,md5.h, md4.h: don't include bit types, the user must do
879         that #ifdef wrap
880         
881         * aes.h: #ifdef wrap
883 2005-03-23  Love Hörnquist Åstrand  <lha@it.su.se>
885         * des.h: fix prototype for DES_random_key
887         * rnd_keys.c: fix prototype for DES_random_key
889         * des.[ch]: provide compatibility function DES_key_sched, same as
890         DES_set_key
892 2005-03-20  Love Hörnquist Åstrand  <lha@it.su.se>
894         * destest.c: include config.h and protect some headers
895         
896         * rnd_keys.c: move <des.h> to after include <krb5-types.h> so the
897         C99 integer types exists
899 2005-03-14  Love Hörnquist Åstrand  <lha@it.su.se>
901         * des.c: add DES_set_key_checked
903         * des.h: add DES_set_key_checked
905 2005-03-01  Love Hörnquist Åstrand  <lha@it.su.se>
906         
907         * des-tables.h: Add the missing file
908         
909 2005-02-23  Love Hörnquist Åstrand  <lha@it.su.se>
911         * ui.c: remove dependency on asprintf
913         * Makefile.am: make destest only once
915         * Replace the eay DES code with key scheule setup code by me and DES
916         s-box and p permutation from Richard Outerbridge implemtation (in
917         public domain).  The DES modes are implemented by me. ui.c code are
918         from appl/login.
920         The implementation is about 3 times slower then Eric for encryption,
921         and about the same speed for key setup.
924 2004-08-10  Love Hörnquist Åstrand  <lha@it.su.se>
926         * rnd_keys.c (DES_rand_data): also try /dev/arandom
928 2004-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
930         * rnd_keys.c: don't include krb4 headers
931         
932         * rijndael-alg-fst.c: don't include krb4 headers
933         
934         * aes.c: don't include krb4 headers
935         
936         * aes.h: define AES_{EN,DE}CRYPT; remove #ifdefs, this is an
937         installed file
939 2004-04-25  Love Hörnquist Åstrand  <lha@it.su.se>
941         * rc2.c: handle non blocksized cbc messages
943         * aes.[ch]: add AES_cbc_encrypt
945 2004-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
947         * rc2test.c: test vectors from RFC2268
948         
949         * rc2.c (RC2_set_key): rewrite the mask calculation
950         
951         * rc2.c (RC2_set_key): handle keys where effective bits are
952         diffrent from keylength
954 2004-04-23  Love Hörnquist Åstrand  <lha@it.su.se>
956         * rc2.c: rc2 implementation
957         
958         * rc2.h: rc2 implementation
959         
960         * rc2test.c: rc2 implementation
961         
962         * Makefile.am: rc2 implementation
964 2004-03-25  Love Hörnquist Åstrand  <lha@it.su.se>
966         * Makefile.am: new arcfour implementation
967         
968         * rc4.c: implemented from description in
969         draft-kaukonen-cipher-arcfour-03.txt
970         
971         * rc4.h: replace with new implementation
972         
973         * rc4_enc.c rc4_skey.c: remove 
975         * rctest.c: test for arcfour
976         
977 2003-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
979         * rnd_keys.c: uninitialized variable, from Panasas Inc
980         
981 2003-09-03  Love Hörnquist Åstrand  <lha@it.su.se>
983         * md4.c (MD4_Final): make the function threadsafe by removing
984         static on the local variable zeros
985         
986         * md5.c (MD5_Final): make the function threadsafe by removing
987         static on the local variable zeros
989         * switch to the DES_ api, dont provide any compat glue
991 2003-08-27  Love Hörnquist Åstrand  <lha@it.su.se>
993         * sha.c: make the function threadsafe by removing static on the
994         local variable zeros
996 2003-07-23  Love Hörnquist Åstrand  <lha@it.su.se>
998         * rijndael-alg-fst.h,rijndael-alg-fst.c,aes.c,aes.h:
999         Makefile.am: add AES support
1001 2003-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
1003         * des.1: sunOS -> SunOS, from jmc <jmc@prioris.mini.pw.edu.pl>
1004         
1005 2003-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
1007         * des.1: spelling, from <jmc@prioris.mini.pw.edu.pl>
1008         
1009 2002-08-28  Johan Danielsson  <joda@pdc.kth.se>
1011         * read_pwd.c: move NeXT SGTTY stuff here
1013 2001-05-17  Assar Westerlund  <assar@sics.se>
1015         * Makefile.am: bump version to 3:1:0
1017 2001-05-11  Assar Westerlund  <assar@sics.se>
1019         * str2key.c (des_string_to_key, des_string_to_2keys): avoid weak
1020         keys
1022 2001-02-16  Assar Westerlund  <assar@sics.se>
1024         * set_key.c: correct weak keys and update comment
1026 2001-02-14  Assar Westerlund  <assar@sics.se>
1028         * set_key.c: correct the two last weak keys in accordance with
1029         FIPS 74.  noted by <jhutz@cmu.edu>
1031 2001-01-30  Assar Westerlund  <assar@sics.se>
1033         * Makefile.am (libdes_la_LDFLAGS): bump version to 3:0:0
1035 2000-10-19  Assar Westerlund  <assar@sics.se>
1037         * Makefile.in (LIBSRC, LIBOBJ): add rc4* and enc_{read,write}
1038         files so that this library contains the same things as libdes in
1039         Heimdal
1041 2000-08-16  Assar Westerlund  <assar@sics.se>
1043         * Makefile.am: bump version to 2:1:0
1045 2000-08-03  Johan Danielsson  <joda@pdc.kth.se>
1047         * enc_writ.c: BSIZE -> des_BSIZE to avoid conflicts with AIX
1048         jfs/fsparam.h
1050         * enc_read.c: BSIZE -> des_BSIZE to avoid conflicts with AIX
1051         jfs/fsparam.h
1053         * des_locl.h: BSIZE -> des_BSIZE to avoid conflicts with AIX
1054         jfs/fsparam.h
1056 2000-02-07  Assar Westerlund  <assar@sics.se>
1058         * Makefile.am: set version to 2:0:0
1060 2000-01-26  Assar Westerlund  <assar@sics.se>
1062         * mdtest.c: update to pseudo-standard APIs for md4,md5,sha.
1063         * md4.c, md4.h, md5.c, md5.h, sha.c, sha.h: move to the
1064         pseudo-standard APIs
1066 1999-12-06  Assar Westerlund  <assar@sics.se>
1068         * Makefile.am: set version to 1:0:1
1070 1999-11-29  Assar Westerlund  <assar@sics.se>
1072         * fcrypt.c (crypt_md5): add trailing $
1073         
1074 1999-11-13  Assar Westerlund  <assar@sics.se>
1076         * Makefile.am (include_HEADERS): add rc4.h
1077         (libdes_la_SOURCES): add rc4_skey.c
1079 1999-10-28  Assar Westerlund  <assar@sics.se>
1081         * md5crypt_test.c: change the test case.  apparently we should not
1082         include $ after the salt.  also make it print more useful stuff
1083         when failing.
1085 1999-10-20  Assar Westerlund  <assar@sics.se>
1087         * Makefile.am: bump version to 0:2:0
1089 1999-09-21  Johan Danielsson  <joda@pdc.kth.se>
1091         * des.h: make this work with mips 64-bit abi
1093 1999-08-14  Johan Danielsson  <joda@pdc.kth.se>
1095         * fcrypt.c (crypt_md5): don't use snprintf
1097 1999-08-13  Assar Westerlund  <assar@sics.se>
1099         * Makefile.am: add md5crypt_test
1101         * Makefile.in: add md5crypt_test
1103         * md5crypt_test.c: test md5 crypt
1105         * fcrypt.c: always enable md5 crypt
1107 1999-07-26  Johan Danielsson  <joda@pdc.kth.se>
1109         * Makefile.am: bump version number (changes to md*, sha)
1111 1999-06-15  Assar Westerlund  <assar@sics.se>
1113         * sha.c (swap_u_int32_t): add _CRAY
1115 Sat Apr 10 23:02:30 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1117         * destest.c: fixes for crays
1119 Thu Apr  1 11:26:38 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1121         * Makefile.am: noinst_PROGRAMS -> check_PROGRAMS; add TESTS; don't
1122         build rpw, and speed
1124 Mon Mar 22 20:16:26 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1126         * Makefile.am: hash.h
1128         * sha.c: use hash.h; fixes for crays
1130         * md5.c: use hash.h; fixes for crays
1132         * md4.c: use hash.h; fixes for crays
1134         * hash.h: common stuff from md4, md5, and sha1
1136 Sat Mar 20 00:16:53 1999  Assar Westerlund  <assar@sics.se>
1138         * rnd_keys.c (des_rand_data): move declaration to get rid of
1139         warning
1141 Thu Mar 18 11:22:28 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1143         * Makefile.am: include Makefile.am.common
1145 Mon Mar 15 17:36:41 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1147         * rnd_keys.c (des_rand_data): if not using setitimer, block
1148         SIGCHLD around fork(), also make sure we get the status of the
1149         child process
1150         (fake_signal): emulate signal using sigaction
1152 Tue Jan 12 05:06:54 1999  Assar Westerlund  <assar@sics.se>
1154         * des.h: sparcv9 is also 64 bits, use `unsigned int' instead of
1155         `unsigned long'
1157 Sun Nov 22 10:40:09 1998  Assar Westerlund  <assar@sics.se>
1159         * Makefile.in (WFLAGS): set
1161 Mon May 25 05:24:56 1998  Assar Westerlund  <assar@sics.se>
1163         * Makefile.in (clean): try to remove shared library debris
1165 Sun Apr 19 09:50:53 1998  Assar Westerlund  <assar@sics.se>
1167         * Makefile.in: add symlink magic for linux
1169 Sun Nov  9 07:14:45 1997  Assar Westerlund  <assar@sics.se>
1171         * mdtest.c: print out old and new string