x
[heimdal.git] / lib / hcrypto / ChangeLog
blob2ec0a9d6d15f0f77437044cb3a61874efbee1b98
1 2008-04-18  Love Hörnquist Åstrand  <lha@it.su.se>
3         * rand.c: Document, implement RAND_set_rand_engine().
4         
5         * doxygen.c: Add reference to DES, more quick links.
7         * rnd_keys.c: Reimplement using RAND_ interface.
9         * des.h: Undeprecate DES_new_random_key.
11         * des.c: Add documentation.
13 2008-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
15         * camellia-ntt.h: Move the typedef u<num> to camellia-ntt.h header
16         file.  Use u32 to define KEY_TABLE_TYPE, avoids warning on
17         platfors where u32 is not unsigned int.
19         * camellia-ntt.c: Move the typedef u<num> to camellia-ntt.h
20         header file.
22         * camellia.h: Drop need to camellia-ntt.h by including some more
23         defines.
25 2008-04-11  Love Hörnquist Åstrand  <lha@it.su.se>
26         
27         * rnd_keys.c: deprecated.
28         
29         * des.h: c++ wrappers + deprecated.
31         * aes.h: c++ wrappers
33         * des.h: c++ wrappers + deprecated
35         * rnd_keys.c: Use matching prototypes, prompted by bug report by
36         David Rosenstrauch.
38 2008-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
40         * camellia.h: Drop unused defined that originates from aes.
41         
42 2008-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
44         * Makefile.am: Add extra files missing from dist.
46 2007-12-30  Love Hörnquist Åstrand  <lha@it.su.se>
48         * rsa.c: ENGINE_get_default_RSA can return NULL.
50         * dh.c: more doxygen.
52 2007-12-28  Love Hörnquist Åstrand  <lha@it.su.se>
54         * evp.c: Add last of the doxygen documentation for functions in
55         this module.
57         * evp.c: complete the EVP_MD functions doxygen.
59 2007-12-11  Love Hörnquist Åstrand  <lha@it.su.se>
61         * version-script.map: export RSA_gmp_method.
63         * doxygen.c: More documentation.
65         * rsa.h: add RSA_gmp_method
67         * rsa-gmp.c: RSA implementation written using GMP.
69         * test_dh.c: Test of DH by Matthias Koenig.
71 2007-12-09  Love Hörnquist Åstrand  <lha@it.su.se>
73         * bn.h (BN_is_negative): make argument const.
75 2007-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
77         * rand.c: Can't call getpwuid(getuid()) at all since that causes
78         recursive lookups. Pointed out by Hai Zaar.
80 2007-08-16  Love Hörnquist Åstrand  <lha@it.su.se>
82         * test_cipher.c: Use test from camellia samples.
84         * version-script.map: Export camellia.
86         * test_cipher.c: Make camellia-128-cbc tests pass.
88 2007-08-07  Love Hörnquist Åstrand  <lha@it.su.se>
90         * test_cipher.c: Sprinkle EVP cipher names.
91         
92 2007-07-30  David Love  <fx@gnu.org>
94         * camellia-ntt.c: Include <krb5-types.h>
95         
96 2007-07-24  Love Hörnquist Åstrand  <lha@it.su.se>
97         
98         * Add Camellia.
100 2007-07-10  Love Hörnquist Åstrand  <lha@it.su.se>
102         * Makefile.am: New library version.
104 2007-06-30  Love Hörnquist Åstrand  <lha@it.su.se>
106         * hmac.c (HMAC_Init_ex): also zero out key material on re-init.
108 2007-06-20  Love Hörnquist Åstrand  <lha@it.su.se>
110         * rand.c: Default to fortuna due to weired /dev/*random that
111         failes to deliver random data for us in hi load situations.
113         * rand-fortuna.c: Reseed the random generator now and then from
114         external sources.
116 2007-06-19  Love Hörnquist Åstrand  <lha@it.su.se>
118         * rand-egd.c: Avoid stoping unrelated memory.
120 2007-06-18  Love Hörnquist Åstrand  <lha@it.su.se>
122         * rand-fortuna.c: Use /etc/shadow, not /dev/shadow, pointed out by
123         Andrew Bartlett
125         * Makefile.am: add rand-timer.c
127         * rand-fortuna.c: Fall back to gattering data from timer and
128         secret files, this is really the last resort.
130         * rand-timer.c: Pick up timing diffrences in the timeing info from
131         realtime timer, only in use as a last resort.
133         * version-script.map: Add hc_RAND_timer_method.
134         
135 2007-06-10  Love Hörnquist Åstrand  <lha@it.su.se>
137         * test_bn.c: Add <rand.h>.
139         * test_crypto.in: Test for random device before running the tests.
141         * test_engine_dso.c: Test for random device.
143         * test_bn.c (test_BN_rand): skip this test if there is no random
144         device
146 2007-06-07  Love Hörnquist Åstrand  <lha@it.su.se>
148         * Makefile.am: Include more ui.[ch] in libbctest.
150         * version-script.map: Unexport _hc_DES_ipfp_test now there is a
151         separate test lib.
153         * Makefile.am: Build library libhctest.la for testing and link
154         with that when testing.
156         * version-script.map: export _hc_DES_ipfp_test
158 2007-06-03  Love Hörnquist Åstrand  <lha@it.su.se>
160         * imath: new update from Michael Fromberger
162         * test_imath.c: Try to find ABR in mp_int_mul.
164         * engine.c: Don't try to load gmp module.
165         
166 2007-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
168         * test_bn.c: Plug memory leak.
169         
170 2007-05-31  Love Hörnquist Åstrand  <lha@it.su.se>
171         
172         * imath/imath.[ch]: New snapshot for Michael Fromberger, lets see if
173         this corrupts memory less.
174         
175 2007-05-30  Love Hörnquist Åstrand  <lha@it.su.se>
176         
177         * version-script.map: Don't prefix all symbols with _
178         
179 2007-05-10  Love Hörnquist Åstrand  <lha@it.su.se>
181         * test_pkcs12.c: test the difference between "" and NULL password.
183         * test_pkcs12.c: one more pkcs12-pbe-s2k check
184         
185 2007-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
187         * Add version-script
189         * test_crypto.in: try generate a couple of rsa keys of
190         diffrent (random) sizes, spelling.
192         * test_rsa.c: try generate a couple of rsa keys of
193         diffrent (random) sizes.
194         
195 2007-04-19  Love Hörnquist Åstrand  <lha@it.su.se>
196         
197         * mdtest.c: stop leaking memory
199         * test_imath.c: fix warnings, make test into function.
201         * test_imath.c: shortest program causing the problem.
203         * test_imath.c: basic imath test
204         
205 2007-04-18  Love Hörnquist Åstrand  <lha@it.su.se>
206         
207         * test_cipher.c (test_cipher): avoid leaking memory
208         
209 2007-04-17  Love Hörnquist Åstrand  <lha@it.su.se>
210         
211         * rsa.c: plug memory leak
212         
213 2007-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
215         * Makefile.am: CLEANFILES += test.file
216         
217 2007-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
218         
219         * Makefile.am: Add randi.h.
221 2007-04-11  Love Hörnquist Åstrand  <lha@it.su.se>
223         * rsa.c: spelling.
224         
225 2007-02-01  Love Hörnquist Åstrand  <lha@it.su.se>
227         * rand.c: Name the random file ~/.rnd, this is the same as
228         OpenSSL.
229         
230 2007-01-31  Love Hörnquist Åstrand  <lha@it.su.se>
232         * rand-egd.c: Make get_bytes static.
234         * rand.c (RAND_write_file): default to failure.
235         
236 2007-01-30  Love Hörnquist Åstrand  <lha@it.su.se>
238         * rand.c: Implement RAND_file_name.
240         * test_rand.c: test RAND_file_name().
242         * rand.c: Provide dummy implementation of RAND_file_name.
244         * rand.h: add RAND_file_name
245         
246 2007-01-21  Love Hörnquist Åstrand  <lha@it.su.se>
247         
248         * Makefile.am: clean more files
250         * rand-egd.c: access private functions though the RAND_METHOD
251         switch, move global egd function to rand-egd.c
253         * rand-fortuna.c: access private functions though the RAND_METHOD
254         switch
256         * rand-unix.c: unexport private functions.
258         * randi.h: Unexport internal functions.
260         * rand.c: access private functions though the RAND_METHOD switch,
261         don't truncate the seed-file, move global egd function to
262         rand-egd.c
264         * test_crypto.in: add basic random tests
266         * rand-egd.c: SGI cc doesn' like return void_returning_function();
267         in a void returning function.
268         
269 2007-01-20  Love Hörnquist Åstrand  <lha@it.su.se>
271         * test_rand.c: Allow select rand method.
273         * rand-unix.c: expose _hc_rand_unix_status
274         
275         * randi.h: expose _hc_rand_unix_status and the internal
276         RAND_METHODs
278         * rand.c: Implement RAND_load_file and RAND_write_file.  Select
279         UNIX random device if available, otherwise use Fortuna.
281         * Add EGD/PRNGD support
283 2007-01-17  Love Hörnquist Åstrand  <lha@it.su.se>
285         * fortuna: Add fortuna based on Marko Kreen's pgcrypt, no enabled yet
287 2007-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
289         * test_rsa.c: if RAND is unhappy, don't run the tests.
291         * test_engine_dso.c: if RAND is unhappy, don't run the tests.
293         * imath/imath.c: Update to imath-1.8 from Michael Fromberger
294         
295         Fixed a bug in s_udiv() affecting the computation of quotient
296         digits.  Thanks to Love Åstrand for isolating this bug.  Also in
297         this release, defining USELLONG=Y or USELLONG=N on the command
298         line for make will switch support for the "long long" data type on
299         or off without having to edit the Makefile.  The default is still
300         to permit use of "long long", even though the type is not standard
301         ANSI C90.
303         * imath/imath.c (s_udiv): Allocate one more for q, remove debug
304         printfs
305         
306 2007-01-10  Love Hörnquist Åstrand  <lha@it.su.se>
307         
308         * imath/imath.c (s_udiv): make a copy of a and b before we start
309         to make sure there is something un-tainted to print in cause of
310         failure. XXX remove this delta
311         (s_embar): make static
312         
313 2007-01-09  Love Hörnquist Åstrand  <lha@it.su.se>
315         * rsa.c: Correct the test if the rsa is a complete RSA private
316         key.
317         
318 2007-01-08  Love Hörnquist Åstrand  <lha@it.su.se>
319         
320         * imath/imath.c: More verbose debugging in case of assertion
321         failure. XXX temporary for AIX problem.
322         
323 2007-01-06  Love Hörnquist Åstrand  <lha@it.su.se>
325         * rsa-imath.c: Fix a silly typo, and with that enable CRT since
326         now it works.
328         * rsa-imath.c: With this crt works, but something is wrong in the
329         key generation, so keep it turned off for now.
331         * test_rsa.c: Allow testing effect of key-blinding
333         * test_rsa.c: Add timing info to rsa keygen.
334         
335         * rsa-imath.c: don't include <imath/rsamath.h>
336         
337 2007-01-05  Love Hörnquist Åstrand  <lha@it.su.se>
338         
339         * imath: prune off stuff we dont use
341         * imath/import.sh: Prune off stuff we don't use from imathsource
343         * Makefile.am: Prune off stuff we don't use from imathsource
345         * rsa-imath.c: Use mp_int_exptmod directly.
347         * imath/iprime.c: Use a larger table of small primes, cut down
348         genenration in best cases to half compared to using a small table.
350         * rsa.h: add RSA_FLAG_NO_BLINDING
352         * rsa-imath.c: Add keyblinding, add a commented out CRT based RSA.
354         * rsa.c: Add iqmp.
356 2007-01-04  Love Hörnquist Åstrand  <lha@it.su.se>
358         * rsa.c: add missing ;
360         * rsa.c: Add i2d_RSAPrivateKey.
362         * rsa.h: Add i2d_RSAPrivateKey.
364         * test_rsa.c: test RSA_generate_key_ex
366         * rsa-imath.c: Add imath_rsa_generate_key.
367         
368 2006-12-31  Love Hörnquist Åstrand  <lha@it.su.se>
370         * rsa.c: add RSA_generate_key_ex
372         * rsa.h: add RSA_generate_key_ex
373         
374 2006-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
375         
376         * Makefile.am: CLEANFILES += test_crypto
377         
378 2006-12-06  Love Hörnquist Åstrand  <lha@it.su.se>
380         * Makefile.am: Add rsakey.der to EXTRA_DIST.
381         
382 2006-12-05  Love Hörnquist Åstrand  <lha@it.su.se>
384         * Makefile.am: Add test_crypto.in to EXTRA_DIST.
386         * test_crypto.in: Add more spaces to allow sh to parse this
388         * test_rsa.c: Explain what the fixed "sha1" checksum test tries to
389         test.
390         
391         * test_crypto.in: test rsa, dh and engine code
392         
393 2006-12-04  Love Hörnquist Åstrand  <lha@it.su.se>
395         * Makefile.am: rsa and crypto engine test cases
397         * test_rsa.c: Make faster and less verbose
399         * rsakey.der: test rsa key
401         * test_rsa.c: Test rsa operations
403         * rsa-imath.c: Fix the rsa-decrypt failed case that been hauting
404         me for a while.
405         
406 2006-12-02  Love Hörnquist Åstrand  <lha@it.su.se>
408         * rsa-imath.c: Use mp_int_to_binary to encode bignums
410         * rsa-imath.c: Check if header is there
411         
412 2006-11-27  Love Hörnquist Åstrand  <lha@it.su.se>
413         
414         * rsa-imath.c: Return -1 for failure.
416         * rsa-imath.c: Its ok with smaller signatures.
418         * rsa-imath.c: Split error codes for now
419         
420 2006-10-22  Love Hörnquist Åstrand  <lha@it.su.se>
422         * rsa.c: Try to not leak memory.
423         
424 2006-10-21  Love Hörnquist Åstrand  <lha@it.su.se>
426         * rand-unix.c (unix_bytes): read until the other side give us all
427         or fail.
429         * imath: import imath-1.7, fixes buffer overrun problems
431         * rsa.c (RSA_free): free the whole key
433         * test_engine_dso.c: Add more dh tests.
435 2006-10-20  Love Hörnquist Åstrand  <lha@it.su.se>
437         * imath/imath.c: Allocate more bits.
439         * dh-imath.c (dh_compute_key): fix signness test
441         * dh-imath.c: Try harder to generate a good keypair.
443         * dh-imath.c: Return -1 dh_compute_key on failure, pointed out by
444         Olga Kornievskaia.
445         
446 2006-10-19  Love Hörnquist Åstrand  <lha@it.su.se>
448         * Makefile.am: Add hash.h and des-tables.h.
450         * dh.c (DH_compute_key): return -1 on bad public key.
452         * rsa.c: remove stray ;
454         * engine.c: Does function typecasts instead of void * type-casts.
456         * evp.c: Does function typecasts instead of void * type-casts.
457         
458 2006-10-16  Love Hörnquist Åstrand  <lha@it.su.se>
459         
460         * Makefile.am: add rand-unix.c
462         * rand.c: Move out rand-unix functions from the core lib.
464         * rand-unix.c: Move out rand-unix functions from the core lib.
465         
466 2006-10-15  Love Hörnquist Åstrand  <lha@it.su.se>
467         
468         * hmac.c (HMAC_CTX_cleanup): destroy the EVP_MD_CTX, so it will be
469         freed.
470         
471 2006-10-14  Love Hörnquist Åstrand  <lha@it.su.se>
473         * bn.c: Drop heim_any.h, prefix der primitives with der_
475         * rsa.c: Drop heim_any.h.
476         
477 2006-10-11  Love Hörnquist Åstrand <lha@it.su.se>
478         
479         * rsa.c (RSA_free): Call the meth->finish before releasing the
480         engine.
481         
482 2006-10-06  Love Hörnquist Åstrand  <lha@it.su.se>
484         * imath/imath.c: Cast argument to ctype(3) functions to (unsigned
485         char).
487         * imath/imrat.c: Cast argument to ctype(3) functions to (unsigned
488         char).
489         
490 2006-09-22  Love Hörnquist Åstrand  <lha@it.su.se>
492         * ui.c (read_string): Try to not call signaction for signal 0 and
493         use NSIG if it exists to determin how many signals there exists,
494         also, only restore those signalhandlers that we got out.
495         
496         Bug reported by and patch tested by Harald Barth.
497         
498 2006-09-15  Love Hörnquist Åstrand  <lha@it.su.se>
500         * rsa-imath.c: Add commeted out test that exponent is > 3
501         
502 2006-05-13  Love Hörnquist Åstrand  <lha@it.su.se>
504         * bn.c (BN_rand): avoid shadowing.
505         
506 2006-05-12  Love Hörnquist Åstrand  <lha@it.su.se>
508         * rsa-imath.c: Fix the last one of the asserts.
509         
510 2006-05-08  Love Hörnquist Åstrand  <lha@it.su.se>
512         * rand.c (get_device_fd): use /dev/urandom first.
514         * rctest.c: Less "pointer targets in passing argument differ in
515         signedness" warnings.
517         * rc2test.c: Less "pointer targets in passing argument differ in
518         signedness" warnings.
519         
520 2006-05-07  Love Hörnquist Åstrand  <lha@it.su.se>
521         
522         * rsa-imath.c: Fix a off by one.
523         
524         * test_engine_dso.c: print the lengths when they don't match.
526         * engine.c (ENGINE_load_builtin_engines): use RSA_imath_method for
527         the building engine.
529         * rsa.h: expose RSA_imath_method
531         * rsa.c (RSA_check_key): Do sign/verify instead.
533         * dsa.c: rename the DSA_METHOD
535         * dh.c: rename the DH_METHOD
537         * dh-imath.c: rename the DH_METHOD
539         * rsa.c: Default to use rsa-imath.
541         * Makefile.am: Add rsa-imath.c to libhcrypto
543         * rsa-imath.c: Add RSA support using imath.
544         
545 2006-05-06 Love Hörnquist Åstrand <lha@it.su.se>
546         
547         * imath: Add imath-1.1.9
549         * dh.h: Expose DH_imath_method.
551         * Makefile.am: Add imath source, add test_engine_dso to TESTS.
553         * engine.c: Lets say we have RSA_null_method(), not really
554         useable, but still.
556         * test_engine_dso.c: If there are no arguments, use the internal
557         engine.
559         * engine.h: Cpp rename some ENGINE symbols.
561         * engine.c (ENGINE_load_builtin_engines): Load the internal
562         engine.
564         * dh.c: Default to use DH-imath.
566         * dh.c (DH_check_pubkey): describe what the function do
568 2006-05-05  Love Hörnquist Åstrand  <lha@it.su.se>
569         
570         * dh.c (DH_compute_key): check return status value from
571         DH_check_pubkey
573         * Rename u_intXX_t to uintXX_t
574         
575 2006-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
577         * pkcs5.c: include <krb5-types.h>
579         * evp.c: Sprinkel some assertions.
581         * des.c: Move assertion and add another restriction, used as hint
582         to beam that its ok
583         
584 2006-04-23  Love Hörnquist Åstrand  <lha@it.su.se>
586         * rsa.c (RSA_check_key): don't do any checking if there is no
587         private key
589         * engine.c (add_engine): reassign engines variable after realloc
590         
591 2006-04-21  Love Hörnquist Åstrand  <lha@it.su.se>
593         * evp.h: Add EVP_get_cipherbyname, unbreak EVP_BytesToKey
595         * evp.h: Add prototype for EVP_BytesToKey
597         * evp.c: Add stub for EVP_BytesToKey
598         
599 2006-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
600         
601         * dh.h: Add cpp-rename for DH_check_pubkey
602         
603 2006-04-17  Love Hörnquist Åstrand  <lha@it.su.se>
605         * rand.h: Add more RAND functions.
607         * rand.c: Split out unix /dev/random to a RAND_METHOD
609         * engine.h: add RAND support
611         * engine.c: add RAND support
613         * evp.h: s/rc4_64/rc2_64/
615         * rand.c: Add RAND_METHOD and some associated functions.
617         * rand.h: Add RAND_METHOD and some associated functions.
619         * test_bn.c: Test BN_rand
620         
621 2006-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
623         * engine.c (ENGINE_by_dso): less printf
625         * rsa.h (i2d_RSAPublicKey): fix prototype
627         * rsa.c (i2d_RSAPublicKey): fix prototype
628         
629 2006-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
631         * evp.h: Add EVP_rc2_64_cbc
633         * evp.c: Add EVP_rc2_64_cbc
635         * evp.h: Add SHA-256 symbols.
637         * evp.c: Add SHA-256.
639         * sha.h: Add SHA-256 symbols.
641         * mdtest.c: Test SHA-256.
643         * sha256.c: Inital (naive) SHA-256 implementation.
644         
645 2006-04-14 Love Hörnquist Åstrand <lha@it.su.se>
647         * des.c (DES_cfb64_encrypt): add asserts that the *num pointers is
648         >= 0, because if it is, its a programmer error.
649         
650 2006-04-09  Love Hörnquist Åstrand  <lha@it.su.se>
652         * rc2.c (RC2_set_key): abort on erroneous input (len <= 0) size
653         that will case out out bound indexing, and its invalid input.
655         * rsa.c: Make compile again.
656         
657 2006-04-03  Love Hörnquist Åstrand  <lha@it.su.se>
659         * rsa.c: Implement i2d_RSAPublicKey
661         * rsa.h: Add i2d_RSAPublicKey
662         
663 2006-03-07 Love Hörnquist Åstrand <lha@it.su.se>
665         * Makefile.am: EVP interface depends on dlopen, add it to LIBFLAGS
666         
667 2006-02-28  Love Hörnquist Åstrand  <lha@it.su.se>
668         
669         * Makefile.am: Add pkcs5 files.
671         * test_pkcs5.c: Testcases for pkcs5 pbe2.
673         * pkcs5.c (PKCS5_PBKDF2_HMAC_SHA1): new function.
675         * hmac.c: Digest key when it exceeds block size, not when it
676         exceeds the size of the output block.
677         
678 2006-02-16  Love Hörnquist Åstrand  <lha@it.su.se>
680         * rand.c (RAND_bytes): Don't abort() on failure, return error.
682         * bn.c (BN_rand): check return value from RAND_bytes
683         
684 2006-01-18  Love Hörnquist Åstrand  <lha@it.su.se>
686         * dh.c (DH_compute_key): check public key
688         * dh.h: Add DH_check_pubkey and defines it uses.
690         * dh.c (DH_check_pubkey): New function.
692         * bn.c: Remove unused fragment.
694         * test_bn.c: Compare numbers with BN_cmp().
695         
696 2006-01-17  David Love  <fx@gnu.org>
698         * bn.c: Include <limits.h>.
699         
700 2006-01-13  Love Hörnquist Åstrand  <lha@it.su.se>
702         * *.h: use #include <hcrypto/...>
704         * Makefile.am: provide a symlink so the directory hcrypto/ seems
705         to exists
707         * engine.h: Expose dsa symbols
709         * Makefile.am: Rename library to hcrypto and install headerfiles
710         in hcrypto/.
712         * test_pkcs12.c: Test for PKCS12_key_gen.
714         * hmac.h: Drop HMAC_CTX_create and HMAC_CTX_destroy.
716         * engine.c (ENGINE_add_conf_module): Also load DH
718         * dh.h: Reorder includes to avoid compile errors, provide
719         DH_new_method().
721         * dh.c: Indent.
723         * bn.c: BN_get_negative was really named BN_is_negative, a comment
724         confused me.
726         * bn.h: BN_get_negative was really named BN_is_negative, a comment
727         confused me.
729         * pkcs12.h: Add PKCS12_key_gen().
731         * pkcs12.c: Add PKCS12_key_gen().
733         * Makefile.am: Add test_cipher, test_pkcs12, add pkcs12.[ch].
735         * evp.c: Rename rc2_40_cbc internal variable to something better.
736         Unbreak des-ede3-cbc.
737         
738 2006-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
740         * test_bn.c: Test BN_uadd.
742         * bn.c (BN_rand): don't leak memory on failure, catch malloc(0)
743         case
744         
745         * bn.c (BN_rand): clear the bits above the bits that user
746         requested.
747         (BN_uadd): new function.
748         
749         * bn.h (BN_uadd): new function.
750         
751 2006-01-10  Love Hörnquist Åstrand <lha@it.su.se>
753         * evp.c (EVP_CIPHER_CTX_cleanup): clean up less aggressively
755         * Makefile.am (check_PROGRAMS): add test_hmac
757         * test_hmac.c: Simple regression test for HMAC.
759         * hmac.c: Make hmac work.
761         * evp.c: return the right blocksize for digests.
762         
763 2006-01-09  Love Hörnquist Åstrand <lha@it.su.se>
765         * test_engine_dso.c: Add test for DH.
767         * dh.c: Add DH_new_method, add ENGINE refcounting.
769         * engine.[ch]: Add ENGINE_set_default_DH and ENGINE_get_default_DH
771         * test_engine_dso.c: Add test for RSA encryption.
772         
773 2006-01-08  Love Hörnquist Åstrand  <lha@it.su.se>
774         
775         * test_engine_dso.c: Add test for RSA.
777         * implement enough glue to support OpenSSLs EVP, RSA, DSA, DH,
778         HMAC, RAND and ENGINE interfaces for use in hx509. rename all
779         symbols to start with hc_ to avoid clobbering namespaces. contains
780         no RSA/DH/DSA code, just glue to support using dynamic
781         ENGINE. hx509 supports this via pkcs11 and there is a gmp ENGINE
782         module supporting RSA. Also contains a MD2 digest for completion.
784 2005-07-20  Love Hörnquist Åstrand  <lha@it.su.se>
786         * des.c,des.h,rnd_keys.c: change unsigned char * to void *
788 2005-06-30  Love Hörnquist Åstrand  <lha@it.su.se>
790         * rnd_keys.c: const poision for unwriteable strings
792 2005-06-19  Love Hörnquist Åstrand  <lha@it.su.se>
794         * des.c,aes.c,rc2.c: Rename parameter, as encrypt shadows a
795         global, from Andrew Bartlett
797 2005-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
799         * rnd_keys.c: Include <stdlib.h> for srandom/random.
801 2005-05-29  Love Hörnquist Åstrand  <lha@it.su.se>
803         * des.c (DES_cbc_cksum): init u to make sure it have a value in
804         case of the empty in data
806         * destest.c: add test for the empty password ""
808 2005-05-27  Love Hörnquist Åstrand  <lha@it.su.se>
810         * rctest.c (cipher3): used unsigned char to avoid problems with
811         platforms using "signed char"
812         
813 2005-05-13  Love Hörnquist Åstrand  <lha@it.su.se>
815         * rc2.c: use unsigned char to avoid signess warning
817         * des.c: use unsigned char to avoid signess warning
819         * aes.c (AES_cbc_encrypt): use unsigned char to avoid signess
820         warning
822 2005-05-03  Dave Love  <fx@gnu.org>
824         * mdtest.c: Fix typo for HAVE_STDLIB_H.
826 2005-05-03  Love Hörnquist Åstrand  <lha@it.su.se>
828         * rnd_keys.c: Enabled to build on cygwin, based on patch from
829         David Love <fx@gnu.org>
831 2005-05-02  Dave Love  <fx@gnu.org>
833         * mdtest.c: Include <krb5-types.h>.
835 2005-04-30  Love Hörnquist Åstrand  <lha@it.su.se>
837         * ui.c: Include <des.h>.
838         (UI_UTIL_read_pw_string): make the prompt argument const.
840         * des.h (UI_UTIL_read_pw_string): make the prompt argument const
842         * ui.c (UI_UTIL_read_pw_string): remove unused variable plen
843         
844         * des.c: replace <strings.h> with <string.h>
845         
846 2005-04-29  Dave Love  <fx@gnu.org>
848         * Makefile.am: Add LIB_roken.
849         
850 2005-04-27  Dave Love  <fx@gnu.org>
852         * sha.c: Include hash.h first.
853         
854         * md4.c: Include hash.h first.
855         
856         * md5.c: Include hash.h first.
857         
858         * hash.h: Include krb5-types.h
859         
860 2005-04-26  Dave Love  <fx@gnu.org>
862         * mdtest.c: Maybe include stdlib.h
863         
864 2005-04-10  Love Hörnquist Åstrand  <lha@it.su.se>
866         * sha.h,md5.h, md4.h: don't include bit types, the user must do
867         that #ifdef wrap
868         
869         * aes.h: #ifdef wrap
871 2005-03-23  Love Hörnquist Åstrand  <lha@it.su.se>
873         * des.h: fix prototype for DES_random_key
875         * rnd_keys.c: fix prototype for DES_random_key
877         * des.[ch]: provide compatibility function DES_key_sched, same as
878         DES_set_key
880 2005-03-20  Love Hörnquist Åstrand  <lha@it.su.se>
882         * destest.c: include config.h and protect some headers
883         
884         * rnd_keys.c: move <des.h> to after include <krb5-types.h> so the
885         C99 integer types exists
887 2005-03-14  Love Hörnquist Åstrand  <lha@it.su.se>
889         * des.c: add DES_set_key_checked
891         * des.h: add DES_set_key_checked
893 2005-03-01  Love Hörnquist Åstrand  <lha@it.su.se>
894         
895         * des-tables.h: Add the missing file
896         
897 2005-02-23  Love Hörnquist Åstrand  <lha@it.su.se>
899         * ui.c: remove dependency on asprintf
901         * Makefile.am: make destest only once
903         * Replace the eay DES code with key scheule setup code by me and DES
904         s-box and p permutation from Richard Outerbridge implemtation (in
905         public domain).  The DES modes are implemented by me. ui.c code are
906         from appl/login.
908         The implementation is about 3 times slower then Eric for encryption,
909         and about the same speed for key setup.
912 2004-08-10  Love Hörnquist Åstrand  <lha@it.su.se>
914         * rnd_keys.c (DES_rand_data): also try /dev/arandom
916 2004-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
918         * rnd_keys.c: don't include krb4 headers
919         
920         * rijndael-alg-fst.c: don't include krb4 headers
921         
922         * aes.c: don't include krb4 headers
923         
924         * aes.h: define AES_{EN,DE}CRYPT; remove #ifdefs, this is an
925         installed file
927 2004-04-25  Love Hörnquist Åstrand  <lha@it.su.se>
929         * rc2.c: handle non blocksized cbc messages
931         * aes.[ch]: add AES_cbc_encrypt
933 2004-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
935         * rc2test.c: test vectors from RFC2268
936         
937         * rc2.c (RC2_set_key): rewrite the mask calculation
938         
939         * rc2.c (RC2_set_key): handle keys where effective bits are
940         diffrent from keylength
942 2004-04-23  Love Hörnquist Åstrand  <lha@it.su.se>
944         * rc2.c: rc2 implementation
945         
946         * rc2.h: rc2 implementation
947         
948         * rc2test.c: rc2 implementation
949         
950         * Makefile.am: rc2 implementation
952 2004-03-25  Love Hörnquist Åstrand  <lha@it.su.se>
954         * Makefile.am: new arcfour implementation
955         
956         * rc4.c: implemented from description in
957         draft-kaukonen-cipher-arcfour-03.txt
958         
959         * rc4.h: replace with new implementation
960         
961         * rc4_enc.c rc4_skey.c: remove 
963         * rctest.c: test for arcfour
964         
965 2003-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
967         * rnd_keys.c: uninitialized variable, from Panasas Inc
968         
969 2003-09-03  Love Hörnquist Åstrand  <lha@it.su.se>
971         * md4.c (MD4_Final): make the function threadsafe by removing
972         static on the local variable zeros
973         
974         * md5.c (MD5_Final): make the function threadsafe by removing
975         static on the local variable zeros
977         * switch to the DES_ api, dont provide any compat glue
979 2003-08-27  Love Hörnquist Åstrand  <lha@it.su.se>
981         * sha.c: make the function threadsafe by removing static on the
982         local variable zeros
984 2003-07-23  Love Hörnquist Åstrand  <lha@it.su.se>
986         * rijndael-alg-fst.h,rijndael-alg-fst.c,aes.c,aes.h:
987         Makefile.am: add AES support
989 2003-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
991         * des.1: sunOS -> SunOS, from jmc <jmc@prioris.mini.pw.edu.pl>
992         
993 2003-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
995         * des.1: spelling, from <jmc@prioris.mini.pw.edu.pl>
996         
997 2002-08-28  Johan Danielsson  <joda@pdc.kth.se>
999         * read_pwd.c: move NeXT SGTTY stuff here
1001 2001-05-17  Assar Westerlund  <assar@sics.se>
1003         * Makefile.am: bump version to 3:1:0
1005 2001-05-11  Assar Westerlund  <assar@sics.se>
1007         * str2key.c (des_string_to_key, des_string_to_2keys): avoid weak
1008         keys
1010 2001-02-16  Assar Westerlund  <assar@sics.se>
1012         * set_key.c: correct weak keys and update comment
1014 2001-02-14  Assar Westerlund  <assar@sics.se>
1016         * set_key.c: correct the two last weak keys in accordance with
1017         FIPS 74.  noted by <jhutz@cmu.edu>
1019 2001-01-30  Assar Westerlund  <assar@sics.se>
1021         * Makefile.am (libdes_la_LDFLAGS): bump version to 3:0:0
1023 2000-10-19  Assar Westerlund  <assar@sics.se>
1025         * Makefile.in (LIBSRC, LIBOBJ): add rc4* and enc_{read,write}
1026         files so that this library contains the same things as libdes in
1027         Heimdal
1029 2000-08-16  Assar Westerlund  <assar@sics.se>
1031         * Makefile.am: bump version to 2:1:0
1033 2000-08-03  Johan Danielsson  <joda@pdc.kth.se>
1035         * enc_writ.c: BSIZE -> des_BSIZE to avoid conflicts with AIX
1036         jfs/fsparam.h
1038         * enc_read.c: BSIZE -> des_BSIZE to avoid conflicts with AIX
1039         jfs/fsparam.h
1041         * des_locl.h: BSIZE -> des_BSIZE to avoid conflicts with AIX
1042         jfs/fsparam.h
1044 2000-02-07  Assar Westerlund  <assar@sics.se>
1046         * Makefile.am: set version to 2:0:0
1048 2000-01-26  Assar Westerlund  <assar@sics.se>
1050         * mdtest.c: update to pseudo-standard APIs for md4,md5,sha.
1051         * md4.c, md4.h, md5.c, md5.h, sha.c, sha.h: move to the
1052         pseudo-standard APIs
1054 1999-12-06  Assar Westerlund  <assar@sics.se>
1056         * Makefile.am: set version to 1:0:1
1058 1999-11-29  Assar Westerlund  <assar@sics.se>
1060         * fcrypt.c (crypt_md5): add trailing $
1061         
1062 1999-11-13  Assar Westerlund  <assar@sics.se>
1064         * Makefile.am (include_HEADERS): add rc4.h
1065         (libdes_la_SOURCES): add rc4_skey.c
1067 1999-10-28  Assar Westerlund  <assar@sics.se>
1069         * md5crypt_test.c: change the test case.  apparently we should not
1070         include $ after the salt.  also make it print more useful stuff
1071         when failing.
1073 1999-10-20  Assar Westerlund  <assar@sics.se>
1075         * Makefile.am: bump version to 0:2:0
1077 1999-09-21  Johan Danielsson  <joda@pdc.kth.se>
1079         * des.h: make this work with mips 64-bit abi
1081 1999-08-14  Johan Danielsson  <joda@pdc.kth.se>
1083         * fcrypt.c (crypt_md5): don't use snprintf
1085 1999-08-13  Assar Westerlund  <assar@sics.se>
1087         * Makefile.am: add md5crypt_test
1089         * Makefile.in: add md5crypt_test
1091         * md5crypt_test.c: test md5 crypt
1093         * fcrypt.c: always enable md5 crypt
1095 1999-07-26  Johan Danielsson  <joda@pdc.kth.se>
1097         * Makefile.am: bump version number (changes to md*, sha)
1099 1999-06-15  Assar Westerlund  <assar@sics.se>
1101         * sha.c (swap_u_int32_t): add _CRAY
1103 Sat Apr 10 23:02:30 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1105         * destest.c: fixes for crays
1107 Thu Apr  1 11:26:38 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1109         * Makefile.am: noinst_PROGRAMS -> check_PROGRAMS; add TESTS; don't
1110         build rpw, and speed
1112 Mon Mar 22 20:16:26 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1114         * Makefile.am: hash.h
1116         * sha.c: use hash.h; fixes for crays
1118         * md5.c: use hash.h; fixes for crays
1120         * md4.c: use hash.h; fixes for crays
1122         * hash.h: common stuff from md4, md5, and sha1
1124 Sat Mar 20 00:16:53 1999  Assar Westerlund  <assar@sics.se>
1126         * rnd_keys.c (des_rand_data): move declaration to get rid of
1127         warning
1129 Thu Mar 18 11:22:28 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1131         * Makefile.am: include Makefile.am.common
1133 Mon Mar 15 17:36:41 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1135         * rnd_keys.c (des_rand_data): if not using setitimer, block
1136         SIGCHLD around fork(), also make sure we get the status of the
1137         child process
1138         (fake_signal): emulate signal using sigaction
1140 Tue Jan 12 05:06:54 1999  Assar Westerlund  <assar@sics.se>
1142         * des.h: sparcv9 is also 64 bits, use `unsigned int' instead of
1143         `unsigned long'
1145 Sun Nov 22 10:40:09 1998  Assar Westerlund  <assar@sics.se>
1147         * Makefile.in (WFLAGS): set
1149 Mon May 25 05:24:56 1998  Assar Westerlund  <assar@sics.se>
1151         * Makefile.in (clean): try to remove shared library debris
1153 Sun Apr 19 09:50:53 1998  Assar Westerlund  <assar@sics.se>
1155         * Makefile.in: add symlink magic for linux
1157 Sun Nov  9 07:14:45 1997  Assar Westerlund  <assar@sics.se>
1159         * mdtest.c: print out old and new string