x
[heimdal.git] / lib / hcrypto / ChangeLog
blob0838557bf48138c50453fe0b017fa6e91e049fd0
1 2008-04-28  Love Hörnquist Åstrand  <lha@it.su.se>
3         * des.c: Remove inifinite loop in DES_set_key().
5 2008-04-27  Love Hörnquist Åstrand  <lha@it.su.se>
7         * des.c: Document missing functions, add DES_check_key_parity().
9         * des.h: Add DES_check_key_parity, deprecate DES_set_key.
11         * version-script.map: Export DES_check_key_parity.
13         * des.h: DES_set_odd_parity "returns" void.
15         * rand.c: Drop const warnings.
17         * des.h: Sort options.
19 2008-04-18  Love Hörnquist Åstrand  <lha@it.su.se>
21         * pkcs5.c: Document PKCS5_PBKDF2_HMAC_SHA1.
23         * des.c: DES is withdrawn.
25         * des.c: Document using doxygen.
27         * des.c: History of DES.
29         * doxygen.c: History of hcrypto.
31         * test_rand.c: do a head vs tail test on the random buffer.
33         * test_crypto.in: Use --file to test_rand.
35         * rand.c: Document, implement RAND_set_rand_engine().
36         
37         * doxygen.c: Add reference to DES, more quick links.
39         * rnd_keys.c: Reimplement using RAND_ interface.
41         * des.h: Undeprecate DES_new_random_key.
43         * des.c: Add documentation.
45 2008-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
47         * camellia-ntt.h: Move the typedef u<num> to camellia-ntt.h header
48         file.  Use u32 to define KEY_TABLE_TYPE, avoids warning on
49         platfors where u32 is not unsigned int.
51         * camellia-ntt.c: Move the typedef u<num> to camellia-ntt.h
52         header file.
54         * camellia.h: Drop need to camellia-ntt.h by including some more
55         defines.
57 2008-04-11  Love Hörnquist Åstrand  <lha@it.su.se>
58         
59         * rnd_keys.c: deprecated.
60         
61         * des.h: c++ wrappers + deprecated.
63         * aes.h: c++ wrappers
65         * des.h: c++ wrappers + deprecated
67         * rnd_keys.c: Use matching prototypes, prompted by bug report by
68         David Rosenstrauch.
70 2008-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
72         * camellia.h: Drop unused defined that originates from aes.
73         
74 2008-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
76         * Makefile.am: Add extra files missing from dist.
78 2007-12-30  Love Hörnquist Åstrand  <lha@it.su.se>
80         * rsa.c: ENGINE_get_default_RSA can return NULL.
82         * dh.c: more doxygen.
84 2007-12-28  Love Hörnquist Åstrand  <lha@it.su.se>
86         * evp.c: Add last of the doxygen documentation for functions in
87         this module.
89         * evp.c: complete the EVP_MD functions doxygen.
91 2007-12-11  Love Hörnquist Åstrand  <lha@it.su.se>
93         * version-script.map: export RSA_gmp_method.
95         * doxygen.c: More documentation.
97         * rsa.h: add RSA_gmp_method
99         * rsa-gmp.c: RSA implementation written using GMP.
101         * test_dh.c: Test of DH by Matthias Koenig.
103 2007-12-09  Love Hörnquist Åstrand  <lha@it.su.se>
105         * bn.h (BN_is_negative): make argument const.
107 2007-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
109         * rand.c: Can't call getpwuid(getuid()) at all since that causes
110         recursive lookups. Pointed out by Hai Zaar.
112 2007-08-16  Love Hörnquist Åstrand  <lha@it.su.se>
114         * test_cipher.c: Use test from camellia samples.
116         * version-script.map: Export camellia.
118         * test_cipher.c: Make camellia-128-cbc tests pass.
120 2007-08-07  Love Hörnquist Åstrand  <lha@it.su.se>
122         * test_cipher.c: Sprinkle EVP cipher names.
123         
124 2007-07-30  David Love  <fx@gnu.org>
126         * camellia-ntt.c: Include <krb5-types.h>
127         
128 2007-07-24  Love Hörnquist Åstrand  <lha@it.su.se>
129         
130         * Add Camellia.
132 2007-07-10  Love Hörnquist Åstrand  <lha@it.su.se>
134         * Makefile.am: New library version.
136 2007-06-30  Love Hörnquist Åstrand  <lha@it.su.se>
138         * hmac.c (HMAC_Init_ex): also zero out key material on re-init.
140 2007-06-20  Love Hörnquist Åstrand  <lha@it.su.se>
142         * rand.c: Default to fortuna due to weired /dev/*random that
143         failes to deliver random data for us in hi load situations.
145         * rand-fortuna.c: Reseed the random generator now and then from
146         external sources.
148 2007-06-19  Love Hörnquist Åstrand  <lha@it.su.se>
150         * rand-egd.c: Avoid stoping unrelated memory.
152 2007-06-18  Love Hörnquist Åstrand  <lha@it.su.se>
154         * rand-fortuna.c: Use /etc/shadow, not /dev/shadow, pointed out by
155         Andrew Bartlett
157         * Makefile.am: add rand-timer.c
159         * rand-fortuna.c: Fall back to gattering data from timer and
160         secret files, this is really the last resort.
162         * rand-timer.c: Pick up timing diffrences in the timeing info from
163         realtime timer, only in use as a last resort.
165         * version-script.map: Add hc_RAND_timer_method.
166         
167 2007-06-10  Love Hörnquist Åstrand  <lha@it.su.se>
169         * test_bn.c: Add <rand.h>.
171         * test_crypto.in: Test for random device before running the tests.
173         * test_engine_dso.c: Test for random device.
175         * test_bn.c (test_BN_rand): skip this test if there is no random
176         device
178 2007-06-07  Love Hörnquist Åstrand  <lha@it.su.se>
180         * Makefile.am: Include more ui.[ch] in libbctest.
182         * version-script.map: Unexport _hc_DES_ipfp_test now there is a
183         separate test lib.
185         * Makefile.am: Build library libhctest.la for testing and link
186         with that when testing.
188         * version-script.map: export _hc_DES_ipfp_test
190 2007-06-03  Love Hörnquist Åstrand  <lha@it.su.se>
192         * imath: new update from Michael Fromberger
194         * test_imath.c: Try to find ABR in mp_int_mul.
196         * engine.c: Don't try to load gmp module.
197         
198 2007-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
200         * test_bn.c: Plug memory leak.
201         
202 2007-05-31  Love Hörnquist Åstrand  <lha@it.su.se>
203         
204         * imath/imath.[ch]: New snapshot for Michael Fromberger, lets see if
205         this corrupts memory less.
206         
207 2007-05-30  Love Hörnquist Åstrand  <lha@it.su.se>
208         
209         * version-script.map: Don't prefix all symbols with _
210         
211 2007-05-10  Love Hörnquist Åstrand  <lha@it.su.se>
213         * test_pkcs12.c: test the difference between "" and NULL password.
215         * test_pkcs12.c: one more pkcs12-pbe-s2k check
216         
217 2007-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
219         * Add version-script
221         * test_crypto.in: try generate a couple of rsa keys of
222         diffrent (random) sizes, spelling.
224         * test_rsa.c: try generate a couple of rsa keys of
225         diffrent (random) sizes.
226         
227 2007-04-19  Love Hörnquist Åstrand  <lha@it.su.se>
228         
229         * mdtest.c: stop leaking memory
231         * test_imath.c: fix warnings, make test into function.
233         * test_imath.c: shortest program causing the problem.
235         * test_imath.c: basic imath test
236         
237 2007-04-18  Love Hörnquist Åstrand  <lha@it.su.se>
238         
239         * test_cipher.c (test_cipher): avoid leaking memory
240         
241 2007-04-17  Love Hörnquist Åstrand  <lha@it.su.se>
242         
243         * rsa.c: plug memory leak
244         
245 2007-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
247         * Makefile.am: CLEANFILES += test.file
248         
249 2007-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
250         
251         * Makefile.am: Add randi.h.
253 2007-04-11  Love Hörnquist Åstrand  <lha@it.su.se>
255         * rsa.c: spelling.
256         
257 2007-02-01  Love Hörnquist Åstrand  <lha@it.su.se>
259         * rand.c: Name the random file ~/.rnd, this is the same as
260         OpenSSL.
261         
262 2007-01-31  Love Hörnquist Åstrand  <lha@it.su.se>
264         * rand-egd.c: Make get_bytes static.
266         * rand.c (RAND_write_file): default to failure.
267         
268 2007-01-30  Love Hörnquist Åstrand  <lha@it.su.se>
270         * rand.c: Implement RAND_file_name.
272         * test_rand.c: test RAND_file_name().
274         * rand.c: Provide dummy implementation of RAND_file_name.
276         * rand.h: add RAND_file_name
277         
278 2007-01-21  Love Hörnquist Åstrand  <lha@it.su.se>
279         
280         * Makefile.am: clean more files
282         * rand-egd.c: access private functions though the RAND_METHOD
283         switch, move global egd function to rand-egd.c
285         * rand-fortuna.c: access private functions though the RAND_METHOD
286         switch
288         * rand-unix.c: unexport private functions.
290         * randi.h: Unexport internal functions.
292         * rand.c: access private functions though the RAND_METHOD switch,
293         don't truncate the seed-file, move global egd function to
294         rand-egd.c
296         * test_crypto.in: add basic random tests
298         * rand-egd.c: SGI cc doesn' like return void_returning_function();
299         in a void returning function.
300         
301 2007-01-20  Love Hörnquist Åstrand  <lha@it.su.se>
303         * test_rand.c: Allow select rand method.
305         * rand-unix.c: expose _hc_rand_unix_status
306         
307         * randi.h: expose _hc_rand_unix_status and the internal
308         RAND_METHODs
310         * rand.c: Implement RAND_load_file and RAND_write_file.  Select
311         UNIX random device if available, otherwise use Fortuna.
313         * Add EGD/PRNGD support
315 2007-01-17  Love Hörnquist Åstrand  <lha@it.su.se>
317         * fortuna: Add fortuna based on Marko Kreen's pgcrypt, no enabled yet
319 2007-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
321         * test_rsa.c: if RAND is unhappy, don't run the tests.
323         * test_engine_dso.c: if RAND is unhappy, don't run the tests.
325         * imath/imath.c: Update to imath-1.8 from Michael Fromberger
326         
327         Fixed a bug in s_udiv() affecting the computation of quotient
328         digits.  Thanks to Love Åstrand for isolating this bug.  Also in
329         this release, defining USELLONG=Y or USELLONG=N on the command
330         line for make will switch support for the "long long" data type on
331         or off without having to edit the Makefile.  The default is still
332         to permit use of "long long", even though the type is not standard
333         ANSI C90.
335         * imath/imath.c (s_udiv): Allocate one more for q, remove debug
336         printfs
337         
338 2007-01-10  Love Hörnquist Åstrand  <lha@it.su.se>
339         
340         * imath/imath.c (s_udiv): make a copy of a and b before we start
341         to make sure there is something un-tainted to print in cause of
342         failure. XXX remove this delta
343         (s_embar): make static
344         
345 2007-01-09  Love Hörnquist Åstrand  <lha@it.su.se>
347         * rsa.c: Correct the test if the rsa is a complete RSA private
348         key.
349         
350 2007-01-08  Love Hörnquist Åstrand  <lha@it.su.se>
351         
352         * imath/imath.c: More verbose debugging in case of assertion
353         failure. XXX temporary for AIX problem.
354         
355 2007-01-06  Love Hörnquist Åstrand  <lha@it.su.se>
357         * rsa-imath.c: Fix a silly typo, and with that enable CRT since
358         now it works.
360         * rsa-imath.c: With this crt works, but something is wrong in the
361         key generation, so keep it turned off for now.
363         * test_rsa.c: Allow testing effect of key-blinding
365         * test_rsa.c: Add timing info to rsa keygen.
366         
367         * rsa-imath.c: don't include <imath/rsamath.h>
368         
369 2007-01-05  Love Hörnquist Åstrand  <lha@it.su.se>
370         
371         * imath: prune off stuff we dont use
373         * imath/import.sh: Prune off stuff we don't use from imathsource
375         * Makefile.am: Prune off stuff we don't use from imathsource
377         * rsa-imath.c: Use mp_int_exptmod directly.
379         * imath/iprime.c: Use a larger table of small primes, cut down
380         genenration in best cases to half compared to using a small table.
382         * rsa.h: add RSA_FLAG_NO_BLINDING
384         * rsa-imath.c: Add keyblinding, add a commented out CRT based RSA.
386         * rsa.c: Add iqmp.
388 2007-01-04  Love Hörnquist Åstrand  <lha@it.su.se>
390         * rsa.c: add missing ;
392         * rsa.c: Add i2d_RSAPrivateKey.
394         * rsa.h: Add i2d_RSAPrivateKey.
396         * test_rsa.c: test RSA_generate_key_ex
398         * rsa-imath.c: Add imath_rsa_generate_key.
399         
400 2006-12-31  Love Hörnquist Åstrand  <lha@it.su.se>
402         * rsa.c: add RSA_generate_key_ex
404         * rsa.h: add RSA_generate_key_ex
405         
406 2006-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
407         
408         * Makefile.am: CLEANFILES += test_crypto
409         
410 2006-12-06  Love Hörnquist Åstrand  <lha@it.su.se>
412         * Makefile.am: Add rsakey.der to EXTRA_DIST.
413         
414 2006-12-05  Love Hörnquist Åstrand  <lha@it.su.se>
416         * Makefile.am: Add test_crypto.in to EXTRA_DIST.
418         * test_crypto.in: Add more spaces to allow sh to parse this
420         * test_rsa.c: Explain what the fixed "sha1" checksum test tries to
421         test.
422         
423         * test_crypto.in: test rsa, dh and engine code
424         
425 2006-12-04  Love Hörnquist Åstrand  <lha@it.su.se>
427         * Makefile.am: rsa and crypto engine test cases
429         * test_rsa.c: Make faster and less verbose
431         * rsakey.der: test rsa key
433         * test_rsa.c: Test rsa operations
435         * rsa-imath.c: Fix the rsa-decrypt failed case that been hauting
436         me for a while.
437         
438 2006-12-02  Love Hörnquist Åstrand  <lha@it.su.se>
440         * rsa-imath.c: Use mp_int_to_binary to encode bignums
442         * rsa-imath.c: Check if header is there
443         
444 2006-11-27  Love Hörnquist Åstrand  <lha@it.su.se>
445         
446         * rsa-imath.c: Return -1 for failure.
448         * rsa-imath.c: Its ok with smaller signatures.
450         * rsa-imath.c: Split error codes for now
451         
452 2006-10-22  Love Hörnquist Åstrand  <lha@it.su.se>
454         * rsa.c: Try to not leak memory.
455         
456 2006-10-21  Love Hörnquist Åstrand  <lha@it.su.se>
458         * rand-unix.c (unix_bytes): read until the other side give us all
459         or fail.
461         * imath: import imath-1.7, fixes buffer overrun problems
463         * rsa.c (RSA_free): free the whole key
465         * test_engine_dso.c: Add more dh tests.
467 2006-10-20  Love Hörnquist Åstrand  <lha@it.su.se>
469         * imath/imath.c: Allocate more bits.
471         * dh-imath.c (dh_compute_key): fix signness test
473         * dh-imath.c: Try harder to generate a good keypair.
475         * dh-imath.c: Return -1 dh_compute_key on failure, pointed out by
476         Olga Kornievskaia.
477         
478 2006-10-19  Love Hörnquist Åstrand  <lha@it.su.se>
480         * Makefile.am: Add hash.h and des-tables.h.
482         * dh.c (DH_compute_key): return -1 on bad public key.
484         * rsa.c: remove stray ;
486         * engine.c: Does function typecasts instead of void * type-casts.
488         * evp.c: Does function typecasts instead of void * type-casts.
489         
490 2006-10-16  Love Hörnquist Åstrand  <lha@it.su.se>
491         
492         * Makefile.am: add rand-unix.c
494         * rand.c: Move out rand-unix functions from the core lib.
496         * rand-unix.c: Move out rand-unix functions from the core lib.
497         
498 2006-10-15  Love Hörnquist Åstrand  <lha@it.su.se>
499         
500         * hmac.c (HMAC_CTX_cleanup): destroy the EVP_MD_CTX, so it will be
501         freed.
502         
503 2006-10-14  Love Hörnquist Åstrand  <lha@it.su.se>
505         * bn.c: Drop heim_any.h, prefix der primitives with der_
507         * rsa.c: Drop heim_any.h.
508         
509 2006-10-11  Love Hörnquist Åstrand <lha@it.su.se>
510         
511         * rsa.c (RSA_free): Call the meth->finish before releasing the
512         engine.
513         
514 2006-10-06  Love Hörnquist Åstrand  <lha@it.su.se>
516         * imath/imath.c: Cast argument to ctype(3) functions to (unsigned
517         char).
519         * imath/imrat.c: Cast argument to ctype(3) functions to (unsigned
520         char).
521         
522 2006-09-22  Love Hörnquist Åstrand  <lha@it.su.se>
524         * ui.c (read_string): Try to not call signaction for signal 0 and
525         use NSIG if it exists to determin how many signals there exists,
526         also, only restore those signalhandlers that we got out.
527         
528         Bug reported by and patch tested by Harald Barth.
529         
530 2006-09-15  Love Hörnquist Åstrand  <lha@it.su.se>
532         * rsa-imath.c: Add commeted out test that exponent is > 3
533         
534 2006-05-13  Love Hörnquist Åstrand  <lha@it.su.se>
536         * bn.c (BN_rand): avoid shadowing.
537         
538 2006-05-12  Love Hörnquist Åstrand  <lha@it.su.se>
540         * rsa-imath.c: Fix the last one of the asserts.
541         
542 2006-05-08  Love Hörnquist Åstrand  <lha@it.su.se>
544         * rand.c (get_device_fd): use /dev/urandom first.
546         * rctest.c: Less "pointer targets in passing argument differ in
547         signedness" warnings.
549         * rc2test.c: Less "pointer targets in passing argument differ in
550         signedness" warnings.
551         
552 2006-05-07  Love Hörnquist Åstrand  <lha@it.su.se>
553         
554         * rsa-imath.c: Fix a off by one.
555         
556         * test_engine_dso.c: print the lengths when they don't match.
558         * engine.c (ENGINE_load_builtin_engines): use RSA_imath_method for
559         the building engine.
561         * rsa.h: expose RSA_imath_method
563         * rsa.c (RSA_check_key): Do sign/verify instead.
565         * dsa.c: rename the DSA_METHOD
567         * dh.c: rename the DH_METHOD
569         * dh-imath.c: rename the DH_METHOD
571         * rsa.c: Default to use rsa-imath.
573         * Makefile.am: Add rsa-imath.c to libhcrypto
575         * rsa-imath.c: Add RSA support using imath.
576         
577 2006-05-06 Love Hörnquist Åstrand <lha@it.su.se>
578         
579         * imath: Add imath-1.1.9
581         * dh.h: Expose DH_imath_method.
583         * Makefile.am: Add imath source, add test_engine_dso to TESTS.
585         * engine.c: Lets say we have RSA_null_method(), not really
586         useable, but still.
588         * test_engine_dso.c: If there are no arguments, use the internal
589         engine.
591         * engine.h: Cpp rename some ENGINE symbols.
593         * engine.c (ENGINE_load_builtin_engines): Load the internal
594         engine.
596         * dh.c: Default to use DH-imath.
598         * dh.c (DH_check_pubkey): describe what the function do
600 2006-05-05  Love Hörnquist Åstrand  <lha@it.su.se>
601         
602         * dh.c (DH_compute_key): check return status value from
603         DH_check_pubkey
605         * Rename u_intXX_t to uintXX_t
606         
607 2006-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
609         * pkcs5.c: include <krb5-types.h>
611         * evp.c: Sprinkel some assertions.
613         * des.c: Move assertion and add another restriction, used as hint
614         to beam that its ok
615         
616 2006-04-23  Love Hörnquist Åstrand  <lha@it.su.se>
618         * rsa.c (RSA_check_key): don't do any checking if there is no
619         private key
621         * engine.c (add_engine): reassign engines variable after realloc
622         
623 2006-04-21  Love Hörnquist Åstrand  <lha@it.su.se>
625         * evp.h: Add EVP_get_cipherbyname, unbreak EVP_BytesToKey
627         * evp.h: Add prototype for EVP_BytesToKey
629         * evp.c: Add stub for EVP_BytesToKey
630         
631 2006-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
632         
633         * dh.h: Add cpp-rename for DH_check_pubkey
634         
635 2006-04-17  Love Hörnquist Åstrand  <lha@it.su.se>
637         * rand.h: Add more RAND functions.
639         * rand.c: Split out unix /dev/random to a RAND_METHOD
641         * engine.h: add RAND support
643         * engine.c: add RAND support
645         * evp.h: s/rc4_64/rc2_64/
647         * rand.c: Add RAND_METHOD and some associated functions.
649         * rand.h: Add RAND_METHOD and some associated functions.
651         * test_bn.c: Test BN_rand
652         
653 2006-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
655         * engine.c (ENGINE_by_dso): less printf
657         * rsa.h (i2d_RSAPublicKey): fix prototype
659         * rsa.c (i2d_RSAPublicKey): fix prototype
660         
661 2006-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
663         * evp.h: Add EVP_rc2_64_cbc
665         * evp.c: Add EVP_rc2_64_cbc
667         * evp.h: Add SHA-256 symbols.
669         * evp.c: Add SHA-256.
671         * sha.h: Add SHA-256 symbols.
673         * mdtest.c: Test SHA-256.
675         * sha256.c: Inital (naive) SHA-256 implementation.
676         
677 2006-04-14 Love Hörnquist Åstrand <lha@it.su.se>
679         * des.c (DES_cfb64_encrypt): add asserts that the *num pointers is
680         >= 0, because if it is, its a programmer error.
681         
682 2006-04-09  Love Hörnquist Åstrand  <lha@it.su.se>
684         * rc2.c (RC2_set_key): abort on erroneous input (len <= 0) size
685         that will case out out bound indexing, and its invalid input.
687         * rsa.c: Make compile again.
688         
689 2006-04-03  Love Hörnquist Åstrand  <lha@it.su.se>
691         * rsa.c: Implement i2d_RSAPublicKey
693         * rsa.h: Add i2d_RSAPublicKey
694         
695 2006-03-07 Love Hörnquist Åstrand <lha@it.su.se>
697         * Makefile.am: EVP interface depends on dlopen, add it to LIBFLAGS
698         
699 2006-02-28  Love Hörnquist Åstrand  <lha@it.su.se>
700         
701         * Makefile.am: Add pkcs5 files.
703         * test_pkcs5.c: Testcases for pkcs5 pbe2.
705         * pkcs5.c (PKCS5_PBKDF2_HMAC_SHA1): new function.
707         * hmac.c: Digest key when it exceeds block size, not when it
708         exceeds the size of the output block.
709         
710 2006-02-16  Love Hörnquist Åstrand  <lha@it.su.se>
712         * rand.c (RAND_bytes): Don't abort() on failure, return error.
714         * bn.c (BN_rand): check return value from RAND_bytes
715         
716 2006-01-18  Love Hörnquist Åstrand  <lha@it.su.se>
718         * dh.c (DH_compute_key): check public key
720         * dh.h: Add DH_check_pubkey and defines it uses.
722         * dh.c (DH_check_pubkey): New function.
724         * bn.c: Remove unused fragment.
726         * test_bn.c: Compare numbers with BN_cmp().
727         
728 2006-01-17  David Love  <fx@gnu.org>
730         * bn.c: Include <limits.h>.
731         
732 2006-01-13  Love Hörnquist Åstrand  <lha@it.su.se>
734         * *.h: use #include <hcrypto/...>
736         * Makefile.am: provide a symlink so the directory hcrypto/ seems
737         to exists
739         * engine.h: Expose dsa symbols
741         * Makefile.am: Rename library to hcrypto and install headerfiles
742         in hcrypto/.
744         * test_pkcs12.c: Test for PKCS12_key_gen.
746         * hmac.h: Drop HMAC_CTX_create and HMAC_CTX_destroy.
748         * engine.c (ENGINE_add_conf_module): Also load DH
750         * dh.h: Reorder includes to avoid compile errors, provide
751         DH_new_method().
753         * dh.c: Indent.
755         * bn.c: BN_get_negative was really named BN_is_negative, a comment
756         confused me.
758         * bn.h: BN_get_negative was really named BN_is_negative, a comment
759         confused me.
761         * pkcs12.h: Add PKCS12_key_gen().
763         * pkcs12.c: Add PKCS12_key_gen().
765         * Makefile.am: Add test_cipher, test_pkcs12, add pkcs12.[ch].
767         * evp.c: Rename rc2_40_cbc internal variable to something better.
768         Unbreak des-ede3-cbc.
769         
770 2006-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
772         * test_bn.c: Test BN_uadd.
774         * bn.c (BN_rand): don't leak memory on failure, catch malloc(0)
775         case
776         
777         * bn.c (BN_rand): clear the bits above the bits that user
778         requested.
779         (BN_uadd): new function.
780         
781         * bn.h (BN_uadd): new function.
782         
783 2006-01-10  Love Hörnquist Åstrand <lha@it.su.se>
785         * evp.c (EVP_CIPHER_CTX_cleanup): clean up less aggressively
787         * Makefile.am (check_PROGRAMS): add test_hmac
789         * test_hmac.c: Simple regression test for HMAC.
791         * hmac.c: Make hmac work.
793         * evp.c: return the right blocksize for digests.
794         
795 2006-01-09  Love Hörnquist Åstrand <lha@it.su.se>
797         * test_engine_dso.c: Add test for DH.
799         * dh.c: Add DH_new_method, add ENGINE refcounting.
801         * engine.[ch]: Add ENGINE_set_default_DH and ENGINE_get_default_DH
803         * test_engine_dso.c: Add test for RSA encryption.
804         
805 2006-01-08  Love Hörnquist Åstrand  <lha@it.su.se>
806         
807         * test_engine_dso.c: Add test for RSA.
809         * implement enough glue to support OpenSSLs EVP, RSA, DSA, DH,
810         HMAC, RAND and ENGINE interfaces for use in hx509. rename all
811         symbols to start with hc_ to avoid clobbering namespaces. contains
812         no RSA/DH/DSA code, just glue to support using dynamic
813         ENGINE. hx509 supports this via pkcs11 and there is a gmp ENGINE
814         module supporting RSA. Also contains a MD2 digest for completion.
816 2005-07-20  Love Hörnquist Åstrand  <lha@it.su.se>
818         * des.c,des.h,rnd_keys.c: change unsigned char * to void *
820 2005-06-30  Love Hörnquist Åstrand  <lha@it.su.se>
822         * rnd_keys.c: const poision for unwriteable strings
824 2005-06-19  Love Hörnquist Åstrand  <lha@it.su.se>
826         * des.c,aes.c,rc2.c: Rename parameter, as encrypt shadows a
827         global, from Andrew Bartlett
829 2005-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
831         * rnd_keys.c: Include <stdlib.h> for srandom/random.
833 2005-05-29  Love Hörnquist Åstrand  <lha@it.su.se>
835         * des.c (DES_cbc_cksum): init u to make sure it have a value in
836         case of the empty in data
838         * destest.c: add test for the empty password ""
840 2005-05-27  Love Hörnquist Åstrand  <lha@it.su.se>
842         * rctest.c (cipher3): used unsigned char to avoid problems with
843         platforms using "signed char"
844         
845 2005-05-13  Love Hörnquist Åstrand  <lha@it.su.se>
847         * rc2.c: use unsigned char to avoid signess warning
849         * des.c: use unsigned char to avoid signess warning
851         * aes.c (AES_cbc_encrypt): use unsigned char to avoid signess
852         warning
854 2005-05-03  Dave Love  <fx@gnu.org>
856         * mdtest.c: Fix typo for HAVE_STDLIB_H.
858 2005-05-03  Love Hörnquist Åstrand  <lha@it.su.se>
860         * rnd_keys.c: Enabled to build on cygwin, based on patch from
861         David Love <fx@gnu.org>
863 2005-05-02  Dave Love  <fx@gnu.org>
865         * mdtest.c: Include <krb5-types.h>.
867 2005-04-30  Love Hörnquist Åstrand  <lha@it.su.se>
869         * ui.c: Include <des.h>.
870         (UI_UTIL_read_pw_string): make the prompt argument const.
872         * des.h (UI_UTIL_read_pw_string): make the prompt argument const
874         * ui.c (UI_UTIL_read_pw_string): remove unused variable plen
875         
876         * des.c: replace <strings.h> with <string.h>
877         
878 2005-04-29  Dave Love  <fx@gnu.org>
880         * Makefile.am: Add LIB_roken.
881         
882 2005-04-27  Dave Love  <fx@gnu.org>
884         * sha.c: Include hash.h first.
885         
886         * md4.c: Include hash.h first.
887         
888         * md5.c: Include hash.h first.
889         
890         * hash.h: Include krb5-types.h
891         
892 2005-04-26  Dave Love  <fx@gnu.org>
894         * mdtest.c: Maybe include stdlib.h
895         
896 2005-04-10  Love Hörnquist Åstrand  <lha@it.su.se>
898         * sha.h,md5.h, md4.h: don't include bit types, the user must do
899         that #ifdef wrap
900         
901         * aes.h: #ifdef wrap
903 2005-03-23  Love Hörnquist Åstrand  <lha@it.su.se>
905         * des.h: fix prototype for DES_random_key
907         * rnd_keys.c: fix prototype for DES_random_key
909         * des.[ch]: provide compatibility function DES_key_sched, same as
910         DES_set_key
912 2005-03-20  Love Hörnquist Åstrand  <lha@it.su.se>
914         * destest.c: include config.h and protect some headers
915         
916         * rnd_keys.c: move <des.h> to after include <krb5-types.h> so the
917         C99 integer types exists
919 2005-03-14  Love Hörnquist Åstrand  <lha@it.su.se>
921         * des.c: add DES_set_key_checked
923         * des.h: add DES_set_key_checked
925 2005-03-01  Love Hörnquist Åstrand  <lha@it.su.se>
926         
927         * des-tables.h: Add the missing file
928         
929 2005-02-23  Love Hörnquist Åstrand  <lha@it.su.se>
931         * ui.c: remove dependency on asprintf
933         * Makefile.am: make destest only once
935         * Replace the eay DES code with key scheule setup code by me and DES
936         s-box and p permutation from Richard Outerbridge implemtation (in
937         public domain).  The DES modes are implemented by me. ui.c code are
938         from appl/login.
940         The implementation is about 3 times slower then Eric for encryption,
941         and about the same speed for key setup.
944 2004-08-10  Love Hörnquist Åstrand  <lha@it.su.se>
946         * rnd_keys.c (DES_rand_data): also try /dev/arandom
948 2004-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
950         * rnd_keys.c: don't include krb4 headers
951         
952         * rijndael-alg-fst.c: don't include krb4 headers
953         
954         * aes.c: don't include krb4 headers
955         
956         * aes.h: define AES_{EN,DE}CRYPT; remove #ifdefs, this is an
957         installed file
959 2004-04-25  Love Hörnquist Åstrand  <lha@it.su.se>
961         * rc2.c: handle non blocksized cbc messages
963         * aes.[ch]: add AES_cbc_encrypt
965 2004-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
967         * rc2test.c: test vectors from RFC2268
968         
969         * rc2.c (RC2_set_key): rewrite the mask calculation
970         
971         * rc2.c (RC2_set_key): handle keys where effective bits are
972         diffrent from keylength
974 2004-04-23  Love Hörnquist Åstrand  <lha@it.su.se>
976         * rc2.c: rc2 implementation
977         
978         * rc2.h: rc2 implementation
979         
980         * rc2test.c: rc2 implementation
981         
982         * Makefile.am: rc2 implementation
984 2004-03-25  Love Hörnquist Åstrand  <lha@it.su.se>
986         * Makefile.am: new arcfour implementation
987         
988         * rc4.c: implemented from description in
989         draft-kaukonen-cipher-arcfour-03.txt
990         
991         * rc4.h: replace with new implementation
992         
993         * rc4_enc.c rc4_skey.c: remove 
995         * rctest.c: test for arcfour
996         
997 2003-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
999         * rnd_keys.c: uninitialized variable, from Panasas Inc
1000         
1001 2003-09-03  Love Hörnquist Åstrand  <lha@it.su.se>
1003         * md4.c (MD4_Final): make the function threadsafe by removing
1004         static on the local variable zeros
1005         
1006         * md5.c (MD5_Final): make the function threadsafe by removing
1007         static on the local variable zeros
1009         * switch to the DES_ api, dont provide any compat glue
1011 2003-08-27  Love Hörnquist Åstrand  <lha@it.su.se>
1013         * sha.c: make the function threadsafe by removing static on the
1014         local variable zeros
1016 2003-07-23  Love Hörnquist Åstrand  <lha@it.su.se>
1018         * rijndael-alg-fst.h,rijndael-alg-fst.c,aes.c,aes.h:
1019         Makefile.am: add AES support
1021 2003-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
1023         * des.1: sunOS -> SunOS, from jmc <jmc@prioris.mini.pw.edu.pl>
1024         
1025 2003-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
1027         * des.1: spelling, from <jmc@prioris.mini.pw.edu.pl>
1028         
1029 2002-08-28  Johan Danielsson  <joda@pdc.kth.se>
1031         * read_pwd.c: move NeXT SGTTY stuff here
1033 2001-05-17  Assar Westerlund  <assar@sics.se>
1035         * Makefile.am: bump version to 3:1:0
1037 2001-05-11  Assar Westerlund  <assar@sics.se>
1039         * str2key.c (des_string_to_key, des_string_to_2keys): avoid weak
1040         keys
1042 2001-02-16  Assar Westerlund  <assar@sics.se>
1044         * set_key.c: correct weak keys and update comment
1046 2001-02-14  Assar Westerlund  <assar@sics.se>
1048         * set_key.c: correct the two last weak keys in accordance with
1049         FIPS 74.  noted by <jhutz@cmu.edu>
1051 2001-01-30  Assar Westerlund  <assar@sics.se>
1053         * Makefile.am (libdes_la_LDFLAGS): bump version to 3:0:0
1055 2000-10-19  Assar Westerlund  <assar@sics.se>
1057         * Makefile.in (LIBSRC, LIBOBJ): add rc4* and enc_{read,write}
1058         files so that this library contains the same things as libdes in
1059         Heimdal
1061 2000-08-16  Assar Westerlund  <assar@sics.se>
1063         * Makefile.am: bump version to 2:1:0
1065 2000-08-03  Johan Danielsson  <joda@pdc.kth.se>
1067         * enc_writ.c: BSIZE -> des_BSIZE to avoid conflicts with AIX
1068         jfs/fsparam.h
1070         * enc_read.c: BSIZE -> des_BSIZE to avoid conflicts with AIX
1071         jfs/fsparam.h
1073         * des_locl.h: BSIZE -> des_BSIZE to avoid conflicts with AIX
1074         jfs/fsparam.h
1076 2000-02-07  Assar Westerlund  <assar@sics.se>
1078         * Makefile.am: set version to 2:0:0
1080 2000-01-26  Assar Westerlund  <assar@sics.se>
1082         * mdtest.c: update to pseudo-standard APIs for md4,md5,sha.
1083         * md4.c, md4.h, md5.c, md5.h, sha.c, sha.h: move to the
1084         pseudo-standard APIs
1086 1999-12-06  Assar Westerlund  <assar@sics.se>
1088         * Makefile.am: set version to 1:0:1
1090 1999-11-29  Assar Westerlund  <assar@sics.se>
1092         * fcrypt.c (crypt_md5): add trailing $
1093         
1094 1999-11-13  Assar Westerlund  <assar@sics.se>
1096         * Makefile.am (include_HEADERS): add rc4.h
1097         (libdes_la_SOURCES): add rc4_skey.c
1099 1999-10-28  Assar Westerlund  <assar@sics.se>
1101         * md5crypt_test.c: change the test case.  apparently we should not
1102         include $ after the salt.  also make it print more useful stuff
1103         when failing.
1105 1999-10-20  Assar Westerlund  <assar@sics.se>
1107         * Makefile.am: bump version to 0:2:0
1109 1999-09-21  Johan Danielsson  <joda@pdc.kth.se>
1111         * des.h: make this work with mips 64-bit abi
1113 1999-08-14  Johan Danielsson  <joda@pdc.kth.se>
1115         * fcrypt.c (crypt_md5): don't use snprintf
1117 1999-08-13  Assar Westerlund  <assar@sics.se>
1119         * Makefile.am: add md5crypt_test
1121         * Makefile.in: add md5crypt_test
1123         * md5crypt_test.c: test md5 crypt
1125         * fcrypt.c: always enable md5 crypt
1127 1999-07-26  Johan Danielsson  <joda@pdc.kth.se>
1129         * Makefile.am: bump version number (changes to md*, sha)
1131 1999-06-15  Assar Westerlund  <assar@sics.se>
1133         * sha.c (swap_u_int32_t): add _CRAY
1135 Sat Apr 10 23:02:30 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1137         * destest.c: fixes for crays
1139 Thu Apr  1 11:26:38 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1141         * Makefile.am: noinst_PROGRAMS -> check_PROGRAMS; add TESTS; don't
1142         build rpw, and speed
1144 Mon Mar 22 20:16:26 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1146         * Makefile.am: hash.h
1148         * sha.c: use hash.h; fixes for crays
1150         * md5.c: use hash.h; fixes for crays
1152         * md4.c: use hash.h; fixes for crays
1154         * hash.h: common stuff from md4, md5, and sha1
1156 Sat Mar 20 00:16:53 1999  Assar Westerlund  <assar@sics.se>
1158         * rnd_keys.c (des_rand_data): move declaration to get rid of
1159         warning
1161 Thu Mar 18 11:22:28 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1163         * Makefile.am: include Makefile.am.common
1165 Mon Mar 15 17:36:41 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1167         * rnd_keys.c (des_rand_data): if not using setitimer, block
1168         SIGCHLD around fork(), also make sure we get the status of the
1169         child process
1170         (fake_signal): emulate signal using sigaction
1172 Tue Jan 12 05:06:54 1999  Assar Westerlund  <assar@sics.se>
1174         * des.h: sparcv9 is also 64 bits, use `unsigned int' instead of
1175         `unsigned long'
1177 Sun Nov 22 10:40:09 1998  Assar Westerlund  <assar@sics.se>
1179         * Makefile.in (WFLAGS): set
1181 Mon May 25 05:24:56 1998  Assar Westerlund  <assar@sics.se>
1183         * Makefile.in (clean): try to remove shared library debris
1185 Sun Apr 19 09:50:53 1998  Assar Westerlund  <assar@sics.se>
1187         * Makefile.in: add symlink magic for linux
1189 Sun Nov  9 07:14:45 1997  Assar Westerlund  <assar@sics.se>
1191         * mdtest.c: print out old and new string