x
[heimdal.git] / lib / hcrypto / ChangeLog
blobd81b5e540da5fc1e076cc72c0cd9a059db78ce90
1 2008-04-27  Love Hörnquist Åstrand  <lha@it.su.se>
3         * des.h: Add DES_check_key_parity, deprecate DES_set_key.
5         * version-script.map: Export DES_check_key_parity.
7         * des.h: DES_set_odd_parity "returns" void.
9         * rand.c: Drop const warnings.
11         * des.h: Sort options.
13 2008-04-18  Love Hörnquist Åstrand  <lha@it.su.se>
15         * pkcs5.c: Document PKCS5_PBKDF2_HMAC_SHA1.
17         * des.c: DES is withdrawn.
19         * des.c: Document using doxygen.
21         * des.c: History of DES.
23         * doxygen.c: History of hcrypto.
25         * test_rand.c: do a head vs tail test on the random buffer.
27         * test_crypto.in: Use --file to test_rand.
29         * rand.c: Document, implement RAND_set_rand_engine().
30         
31         * doxygen.c: Add reference to DES, more quick links.
33         * rnd_keys.c: Reimplement using RAND_ interface.
35         * des.h: Undeprecate DES_new_random_key.
37         * des.c: Add documentation.
39 2008-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
41         * camellia-ntt.h: Move the typedef u<num> to camellia-ntt.h header
42         file.  Use u32 to define KEY_TABLE_TYPE, avoids warning on
43         platfors where u32 is not unsigned int.
45         * camellia-ntt.c: Move the typedef u<num> to camellia-ntt.h
46         header file.
48         * camellia.h: Drop need to camellia-ntt.h by including some more
49         defines.
51 2008-04-11  Love Hörnquist Åstrand  <lha@it.su.se>
52         
53         * rnd_keys.c: deprecated.
54         
55         * des.h: c++ wrappers + deprecated.
57         * aes.h: c++ wrappers
59         * des.h: c++ wrappers + deprecated
61         * rnd_keys.c: Use matching prototypes, prompted by bug report by
62         David Rosenstrauch.
64 2008-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
66         * camellia.h: Drop unused defined that originates from aes.
67         
68 2008-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
70         * Makefile.am: Add extra files missing from dist.
72 2007-12-30  Love Hörnquist Åstrand  <lha@it.su.se>
74         * rsa.c: ENGINE_get_default_RSA can return NULL.
76         * dh.c: more doxygen.
78 2007-12-28  Love Hörnquist Åstrand  <lha@it.su.se>
80         * evp.c: Add last of the doxygen documentation for functions in
81         this module.
83         * evp.c: complete the EVP_MD functions doxygen.
85 2007-12-11  Love Hörnquist Åstrand  <lha@it.su.se>
87         * version-script.map: export RSA_gmp_method.
89         * doxygen.c: More documentation.
91         * rsa.h: add RSA_gmp_method
93         * rsa-gmp.c: RSA implementation written using GMP.
95         * test_dh.c: Test of DH by Matthias Koenig.
97 2007-12-09  Love Hörnquist Åstrand  <lha@it.su.se>
99         * bn.h (BN_is_negative): make argument const.
101 2007-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
103         * rand.c: Can't call getpwuid(getuid()) at all since that causes
104         recursive lookups. Pointed out by Hai Zaar.
106 2007-08-16  Love Hörnquist Åstrand  <lha@it.su.se>
108         * test_cipher.c: Use test from camellia samples.
110         * version-script.map: Export camellia.
112         * test_cipher.c: Make camellia-128-cbc tests pass.
114 2007-08-07  Love Hörnquist Åstrand  <lha@it.su.se>
116         * test_cipher.c: Sprinkle EVP cipher names.
117         
118 2007-07-30  David Love  <fx@gnu.org>
120         * camellia-ntt.c: Include <krb5-types.h>
121         
122 2007-07-24  Love Hörnquist Åstrand  <lha@it.su.se>
123         
124         * Add Camellia.
126 2007-07-10  Love Hörnquist Åstrand  <lha@it.su.se>
128         * Makefile.am: New library version.
130 2007-06-30  Love Hörnquist Åstrand  <lha@it.su.se>
132         * hmac.c (HMAC_Init_ex): also zero out key material on re-init.
134 2007-06-20  Love Hörnquist Åstrand  <lha@it.su.se>
136         * rand.c: Default to fortuna due to weired /dev/*random that
137         failes to deliver random data for us in hi load situations.
139         * rand-fortuna.c: Reseed the random generator now and then from
140         external sources.
142 2007-06-19  Love Hörnquist Åstrand  <lha@it.su.se>
144         * rand-egd.c: Avoid stoping unrelated memory.
146 2007-06-18  Love Hörnquist Åstrand  <lha@it.su.se>
148         * rand-fortuna.c: Use /etc/shadow, not /dev/shadow, pointed out by
149         Andrew Bartlett
151         * Makefile.am: add rand-timer.c
153         * rand-fortuna.c: Fall back to gattering data from timer and
154         secret files, this is really the last resort.
156         * rand-timer.c: Pick up timing diffrences in the timeing info from
157         realtime timer, only in use as a last resort.
159         * version-script.map: Add hc_RAND_timer_method.
160         
161 2007-06-10  Love Hörnquist Åstrand  <lha@it.su.se>
163         * test_bn.c: Add <rand.h>.
165         * test_crypto.in: Test for random device before running the tests.
167         * test_engine_dso.c: Test for random device.
169         * test_bn.c (test_BN_rand): skip this test if there is no random
170         device
172 2007-06-07  Love Hörnquist Åstrand  <lha@it.su.se>
174         * Makefile.am: Include more ui.[ch] in libbctest.
176         * version-script.map: Unexport _hc_DES_ipfp_test now there is a
177         separate test lib.
179         * Makefile.am: Build library libhctest.la for testing and link
180         with that when testing.
182         * version-script.map: export _hc_DES_ipfp_test
184 2007-06-03  Love Hörnquist Åstrand  <lha@it.su.se>
186         * imath: new update from Michael Fromberger
188         * test_imath.c: Try to find ABR in mp_int_mul.
190         * engine.c: Don't try to load gmp module.
191         
192 2007-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
194         * test_bn.c: Plug memory leak.
195         
196 2007-05-31  Love Hörnquist Åstrand  <lha@it.su.se>
197         
198         * imath/imath.[ch]: New snapshot for Michael Fromberger, lets see if
199         this corrupts memory less.
200         
201 2007-05-30  Love Hörnquist Åstrand  <lha@it.su.se>
202         
203         * version-script.map: Don't prefix all symbols with _
204         
205 2007-05-10  Love Hörnquist Åstrand  <lha@it.su.se>
207         * test_pkcs12.c: test the difference between "" and NULL password.
209         * test_pkcs12.c: one more pkcs12-pbe-s2k check
210         
211 2007-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
213         * Add version-script
215         * test_crypto.in: try generate a couple of rsa keys of
216         diffrent (random) sizes, spelling.
218         * test_rsa.c: try generate a couple of rsa keys of
219         diffrent (random) sizes.
220         
221 2007-04-19  Love Hörnquist Åstrand  <lha@it.su.se>
222         
223         * mdtest.c: stop leaking memory
225         * test_imath.c: fix warnings, make test into function.
227         * test_imath.c: shortest program causing the problem.
229         * test_imath.c: basic imath test
230         
231 2007-04-18  Love Hörnquist Åstrand  <lha@it.su.se>
232         
233         * test_cipher.c (test_cipher): avoid leaking memory
234         
235 2007-04-17  Love Hörnquist Åstrand  <lha@it.su.se>
236         
237         * rsa.c: plug memory leak
238         
239 2007-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
241         * Makefile.am: CLEANFILES += test.file
242         
243 2007-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
244         
245         * Makefile.am: Add randi.h.
247 2007-04-11  Love Hörnquist Åstrand  <lha@it.su.se>
249         * rsa.c: spelling.
250         
251 2007-02-01  Love Hörnquist Åstrand  <lha@it.su.se>
253         * rand.c: Name the random file ~/.rnd, this is the same as
254         OpenSSL.
255         
256 2007-01-31  Love Hörnquist Åstrand  <lha@it.su.se>
258         * rand-egd.c: Make get_bytes static.
260         * rand.c (RAND_write_file): default to failure.
261         
262 2007-01-30  Love Hörnquist Åstrand  <lha@it.su.se>
264         * rand.c: Implement RAND_file_name.
266         * test_rand.c: test RAND_file_name().
268         * rand.c: Provide dummy implementation of RAND_file_name.
270         * rand.h: add RAND_file_name
271         
272 2007-01-21  Love Hörnquist Åstrand  <lha@it.su.se>
273         
274         * Makefile.am: clean more files
276         * rand-egd.c: access private functions though the RAND_METHOD
277         switch, move global egd function to rand-egd.c
279         * rand-fortuna.c: access private functions though the RAND_METHOD
280         switch
282         * rand-unix.c: unexport private functions.
284         * randi.h: Unexport internal functions.
286         * rand.c: access private functions though the RAND_METHOD switch,
287         don't truncate the seed-file, move global egd function to
288         rand-egd.c
290         * test_crypto.in: add basic random tests
292         * rand-egd.c: SGI cc doesn' like return void_returning_function();
293         in a void returning function.
294         
295 2007-01-20  Love Hörnquist Åstrand  <lha@it.su.se>
297         * test_rand.c: Allow select rand method.
299         * rand-unix.c: expose _hc_rand_unix_status
300         
301         * randi.h: expose _hc_rand_unix_status and the internal
302         RAND_METHODs
304         * rand.c: Implement RAND_load_file and RAND_write_file.  Select
305         UNIX random device if available, otherwise use Fortuna.
307         * Add EGD/PRNGD support
309 2007-01-17  Love Hörnquist Åstrand  <lha@it.su.se>
311         * fortuna: Add fortuna based on Marko Kreen's pgcrypt, no enabled yet
313 2007-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
315         * test_rsa.c: if RAND is unhappy, don't run the tests.
317         * test_engine_dso.c: if RAND is unhappy, don't run the tests.
319         * imath/imath.c: Update to imath-1.8 from Michael Fromberger
320         
321         Fixed a bug in s_udiv() affecting the computation of quotient
322         digits.  Thanks to Love Åstrand for isolating this bug.  Also in
323         this release, defining USELLONG=Y or USELLONG=N on the command
324         line for make will switch support for the "long long" data type on
325         or off without having to edit the Makefile.  The default is still
326         to permit use of "long long", even though the type is not standard
327         ANSI C90.
329         * imath/imath.c (s_udiv): Allocate one more for q, remove debug
330         printfs
331         
332 2007-01-10  Love Hörnquist Åstrand  <lha@it.su.se>
333         
334         * imath/imath.c (s_udiv): make a copy of a and b before we start
335         to make sure there is something un-tainted to print in cause of
336         failure. XXX remove this delta
337         (s_embar): make static
338         
339 2007-01-09  Love Hörnquist Åstrand  <lha@it.su.se>
341         * rsa.c: Correct the test if the rsa is a complete RSA private
342         key.
343         
344 2007-01-08  Love Hörnquist Åstrand  <lha@it.su.se>
345         
346         * imath/imath.c: More verbose debugging in case of assertion
347         failure. XXX temporary for AIX problem.
348         
349 2007-01-06  Love Hörnquist Åstrand  <lha@it.su.se>
351         * rsa-imath.c: Fix a silly typo, and with that enable CRT since
352         now it works.
354         * rsa-imath.c: With this crt works, but something is wrong in the
355         key generation, so keep it turned off for now.
357         * test_rsa.c: Allow testing effect of key-blinding
359         * test_rsa.c: Add timing info to rsa keygen.
360         
361         * rsa-imath.c: don't include <imath/rsamath.h>
362         
363 2007-01-05  Love Hörnquist Åstrand  <lha@it.su.se>
364         
365         * imath: prune off stuff we dont use
367         * imath/import.sh: Prune off stuff we don't use from imathsource
369         * Makefile.am: Prune off stuff we don't use from imathsource
371         * rsa-imath.c: Use mp_int_exptmod directly.
373         * imath/iprime.c: Use a larger table of small primes, cut down
374         genenration in best cases to half compared to using a small table.
376         * rsa.h: add RSA_FLAG_NO_BLINDING
378         * rsa-imath.c: Add keyblinding, add a commented out CRT based RSA.
380         * rsa.c: Add iqmp.
382 2007-01-04  Love Hörnquist Åstrand  <lha@it.su.se>
384         * rsa.c: add missing ;
386         * rsa.c: Add i2d_RSAPrivateKey.
388         * rsa.h: Add i2d_RSAPrivateKey.
390         * test_rsa.c: test RSA_generate_key_ex
392         * rsa-imath.c: Add imath_rsa_generate_key.
393         
394 2006-12-31  Love Hörnquist Åstrand  <lha@it.su.se>
396         * rsa.c: add RSA_generate_key_ex
398         * rsa.h: add RSA_generate_key_ex
399         
400 2006-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
401         
402         * Makefile.am: CLEANFILES += test_crypto
403         
404 2006-12-06  Love Hörnquist Åstrand  <lha@it.su.se>
406         * Makefile.am: Add rsakey.der to EXTRA_DIST.
407         
408 2006-12-05  Love Hörnquist Åstrand  <lha@it.su.se>
410         * Makefile.am: Add test_crypto.in to EXTRA_DIST.
412         * test_crypto.in: Add more spaces to allow sh to parse this
414         * test_rsa.c: Explain what the fixed "sha1" checksum test tries to
415         test.
416         
417         * test_crypto.in: test rsa, dh and engine code
418         
419 2006-12-04  Love Hörnquist Åstrand  <lha@it.su.se>
421         * Makefile.am: rsa and crypto engine test cases
423         * test_rsa.c: Make faster and less verbose
425         * rsakey.der: test rsa key
427         * test_rsa.c: Test rsa operations
429         * rsa-imath.c: Fix the rsa-decrypt failed case that been hauting
430         me for a while.
431         
432 2006-12-02  Love Hörnquist Åstrand  <lha@it.su.se>
434         * rsa-imath.c: Use mp_int_to_binary to encode bignums
436         * rsa-imath.c: Check if header is there
437         
438 2006-11-27  Love Hörnquist Åstrand  <lha@it.su.se>
439         
440         * rsa-imath.c: Return -1 for failure.
442         * rsa-imath.c: Its ok with smaller signatures.
444         * rsa-imath.c: Split error codes for now
445         
446 2006-10-22  Love Hörnquist Åstrand  <lha@it.su.se>
448         * rsa.c: Try to not leak memory.
449         
450 2006-10-21  Love Hörnquist Åstrand  <lha@it.su.se>
452         * rand-unix.c (unix_bytes): read until the other side give us all
453         or fail.
455         * imath: import imath-1.7, fixes buffer overrun problems
457         * rsa.c (RSA_free): free the whole key
459         * test_engine_dso.c: Add more dh tests.
461 2006-10-20  Love Hörnquist Åstrand  <lha@it.su.se>
463         * imath/imath.c: Allocate more bits.
465         * dh-imath.c (dh_compute_key): fix signness test
467         * dh-imath.c: Try harder to generate a good keypair.
469         * dh-imath.c: Return -1 dh_compute_key on failure, pointed out by
470         Olga Kornievskaia.
471         
472 2006-10-19  Love Hörnquist Åstrand  <lha@it.su.se>
474         * Makefile.am: Add hash.h and des-tables.h.
476         * dh.c (DH_compute_key): return -1 on bad public key.
478         * rsa.c: remove stray ;
480         * engine.c: Does function typecasts instead of void * type-casts.
482         * evp.c: Does function typecasts instead of void * type-casts.
483         
484 2006-10-16  Love Hörnquist Åstrand  <lha@it.su.se>
485         
486         * Makefile.am: add rand-unix.c
488         * rand.c: Move out rand-unix functions from the core lib.
490         * rand-unix.c: Move out rand-unix functions from the core lib.
491         
492 2006-10-15  Love Hörnquist Åstrand  <lha@it.su.se>
493         
494         * hmac.c (HMAC_CTX_cleanup): destroy the EVP_MD_CTX, so it will be
495         freed.
496         
497 2006-10-14  Love Hörnquist Åstrand  <lha@it.su.se>
499         * bn.c: Drop heim_any.h, prefix der primitives with der_
501         * rsa.c: Drop heim_any.h.
502         
503 2006-10-11  Love Hörnquist Åstrand <lha@it.su.se>
504         
505         * rsa.c (RSA_free): Call the meth->finish before releasing the
506         engine.
507         
508 2006-10-06  Love Hörnquist Åstrand  <lha@it.su.se>
510         * imath/imath.c: Cast argument to ctype(3) functions to (unsigned
511         char).
513         * imath/imrat.c: Cast argument to ctype(3) functions to (unsigned
514         char).
515         
516 2006-09-22  Love Hörnquist Åstrand  <lha@it.su.se>
518         * ui.c (read_string): Try to not call signaction for signal 0 and
519         use NSIG if it exists to determin how many signals there exists,
520         also, only restore those signalhandlers that we got out.
521         
522         Bug reported by and patch tested by Harald Barth.
523         
524 2006-09-15  Love Hörnquist Åstrand  <lha@it.su.se>
526         * rsa-imath.c: Add commeted out test that exponent is > 3
527         
528 2006-05-13  Love Hörnquist Åstrand  <lha@it.su.se>
530         * bn.c (BN_rand): avoid shadowing.
531         
532 2006-05-12  Love Hörnquist Åstrand  <lha@it.su.se>
534         * rsa-imath.c: Fix the last one of the asserts.
535         
536 2006-05-08  Love Hörnquist Åstrand  <lha@it.su.se>
538         * rand.c (get_device_fd): use /dev/urandom first.
540         * rctest.c: Less "pointer targets in passing argument differ in
541         signedness" warnings.
543         * rc2test.c: Less "pointer targets in passing argument differ in
544         signedness" warnings.
545         
546 2006-05-07  Love Hörnquist Åstrand  <lha@it.su.se>
547         
548         * rsa-imath.c: Fix a off by one.
549         
550         * test_engine_dso.c: print the lengths when they don't match.
552         * engine.c (ENGINE_load_builtin_engines): use RSA_imath_method for
553         the building engine.
555         * rsa.h: expose RSA_imath_method
557         * rsa.c (RSA_check_key): Do sign/verify instead.
559         * dsa.c: rename the DSA_METHOD
561         * dh.c: rename the DH_METHOD
563         * dh-imath.c: rename the DH_METHOD
565         * rsa.c: Default to use rsa-imath.
567         * Makefile.am: Add rsa-imath.c to libhcrypto
569         * rsa-imath.c: Add RSA support using imath.
570         
571 2006-05-06 Love Hörnquist Åstrand <lha@it.su.se>
572         
573         * imath: Add imath-1.1.9
575         * dh.h: Expose DH_imath_method.
577         * Makefile.am: Add imath source, add test_engine_dso to TESTS.
579         * engine.c: Lets say we have RSA_null_method(), not really
580         useable, but still.
582         * test_engine_dso.c: If there are no arguments, use the internal
583         engine.
585         * engine.h: Cpp rename some ENGINE symbols.
587         * engine.c (ENGINE_load_builtin_engines): Load the internal
588         engine.
590         * dh.c: Default to use DH-imath.
592         * dh.c (DH_check_pubkey): describe what the function do
594 2006-05-05  Love Hörnquist Åstrand  <lha@it.su.se>
595         
596         * dh.c (DH_compute_key): check return status value from
597         DH_check_pubkey
599         * Rename u_intXX_t to uintXX_t
600         
601 2006-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
603         * pkcs5.c: include <krb5-types.h>
605         * evp.c: Sprinkel some assertions.
607         * des.c: Move assertion and add another restriction, used as hint
608         to beam that its ok
609         
610 2006-04-23  Love Hörnquist Åstrand  <lha@it.su.se>
612         * rsa.c (RSA_check_key): don't do any checking if there is no
613         private key
615         * engine.c (add_engine): reassign engines variable after realloc
616         
617 2006-04-21  Love Hörnquist Åstrand  <lha@it.su.se>
619         * evp.h: Add EVP_get_cipherbyname, unbreak EVP_BytesToKey
621         * evp.h: Add prototype for EVP_BytesToKey
623         * evp.c: Add stub for EVP_BytesToKey
624         
625 2006-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
626         
627         * dh.h: Add cpp-rename for DH_check_pubkey
628         
629 2006-04-17  Love Hörnquist Åstrand  <lha@it.su.se>
631         * rand.h: Add more RAND functions.
633         * rand.c: Split out unix /dev/random to a RAND_METHOD
635         * engine.h: add RAND support
637         * engine.c: add RAND support
639         * evp.h: s/rc4_64/rc2_64/
641         * rand.c: Add RAND_METHOD and some associated functions.
643         * rand.h: Add RAND_METHOD and some associated functions.
645         * test_bn.c: Test BN_rand
646         
647 2006-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
649         * engine.c (ENGINE_by_dso): less printf
651         * rsa.h (i2d_RSAPublicKey): fix prototype
653         * rsa.c (i2d_RSAPublicKey): fix prototype
654         
655 2006-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
657         * evp.h: Add EVP_rc2_64_cbc
659         * evp.c: Add EVP_rc2_64_cbc
661         * evp.h: Add SHA-256 symbols.
663         * evp.c: Add SHA-256.
665         * sha.h: Add SHA-256 symbols.
667         * mdtest.c: Test SHA-256.
669         * sha256.c: Inital (naive) SHA-256 implementation.
670         
671 2006-04-14 Love Hörnquist Åstrand <lha@it.su.se>
673         * des.c (DES_cfb64_encrypt): add asserts that the *num pointers is
674         >= 0, because if it is, its a programmer error.
675         
676 2006-04-09  Love Hörnquist Åstrand  <lha@it.su.se>
678         * rc2.c (RC2_set_key): abort on erroneous input (len <= 0) size
679         that will case out out bound indexing, and its invalid input.
681         * rsa.c: Make compile again.
682         
683 2006-04-03  Love Hörnquist Åstrand  <lha@it.su.se>
685         * rsa.c: Implement i2d_RSAPublicKey
687         * rsa.h: Add i2d_RSAPublicKey
688         
689 2006-03-07 Love Hörnquist Åstrand <lha@it.su.se>
691         * Makefile.am: EVP interface depends on dlopen, add it to LIBFLAGS
692         
693 2006-02-28  Love Hörnquist Åstrand  <lha@it.su.se>
694         
695         * Makefile.am: Add pkcs5 files.
697         * test_pkcs5.c: Testcases for pkcs5 pbe2.
699         * pkcs5.c (PKCS5_PBKDF2_HMAC_SHA1): new function.
701         * hmac.c: Digest key when it exceeds block size, not when it
702         exceeds the size of the output block.
703         
704 2006-02-16  Love Hörnquist Åstrand  <lha@it.su.se>
706         * rand.c (RAND_bytes): Don't abort() on failure, return error.
708         * bn.c (BN_rand): check return value from RAND_bytes
709         
710 2006-01-18  Love Hörnquist Åstrand  <lha@it.su.se>
712         * dh.c (DH_compute_key): check public key
714         * dh.h: Add DH_check_pubkey and defines it uses.
716         * dh.c (DH_check_pubkey): New function.
718         * bn.c: Remove unused fragment.
720         * test_bn.c: Compare numbers with BN_cmp().
721         
722 2006-01-17  David Love  <fx@gnu.org>
724         * bn.c: Include <limits.h>.
725         
726 2006-01-13  Love Hörnquist Åstrand  <lha@it.su.se>
728         * *.h: use #include <hcrypto/...>
730         * Makefile.am: provide a symlink so the directory hcrypto/ seems
731         to exists
733         * engine.h: Expose dsa symbols
735         * Makefile.am: Rename library to hcrypto and install headerfiles
736         in hcrypto/.
738         * test_pkcs12.c: Test for PKCS12_key_gen.
740         * hmac.h: Drop HMAC_CTX_create and HMAC_CTX_destroy.
742         * engine.c (ENGINE_add_conf_module): Also load DH
744         * dh.h: Reorder includes to avoid compile errors, provide
745         DH_new_method().
747         * dh.c: Indent.
749         * bn.c: BN_get_negative was really named BN_is_negative, a comment
750         confused me.
752         * bn.h: BN_get_negative was really named BN_is_negative, a comment
753         confused me.
755         * pkcs12.h: Add PKCS12_key_gen().
757         * pkcs12.c: Add PKCS12_key_gen().
759         * Makefile.am: Add test_cipher, test_pkcs12, add pkcs12.[ch].
761         * evp.c: Rename rc2_40_cbc internal variable to something better.
762         Unbreak des-ede3-cbc.
763         
764 2006-01-11  Love Hörnquist Åstrand  <lha@it.su.se>
766         * test_bn.c: Test BN_uadd.
768         * bn.c (BN_rand): don't leak memory on failure, catch malloc(0)
769         case
770         
771         * bn.c (BN_rand): clear the bits above the bits that user
772         requested.
773         (BN_uadd): new function.
774         
775         * bn.h (BN_uadd): new function.
776         
777 2006-01-10  Love Hörnquist Åstrand <lha@it.su.se>
779         * evp.c (EVP_CIPHER_CTX_cleanup): clean up less aggressively
781         * Makefile.am (check_PROGRAMS): add test_hmac
783         * test_hmac.c: Simple regression test for HMAC.
785         * hmac.c: Make hmac work.
787         * evp.c: return the right blocksize for digests.
788         
789 2006-01-09  Love Hörnquist Åstrand <lha@it.su.se>
791         * test_engine_dso.c: Add test for DH.
793         * dh.c: Add DH_new_method, add ENGINE refcounting.
795         * engine.[ch]: Add ENGINE_set_default_DH and ENGINE_get_default_DH
797         * test_engine_dso.c: Add test for RSA encryption.
798         
799 2006-01-08  Love Hörnquist Åstrand  <lha@it.su.se>
800         
801         * test_engine_dso.c: Add test for RSA.
803         * implement enough glue to support OpenSSLs EVP, RSA, DSA, DH,
804         HMAC, RAND and ENGINE interfaces for use in hx509. rename all
805         symbols to start with hc_ to avoid clobbering namespaces. contains
806         no RSA/DH/DSA code, just glue to support using dynamic
807         ENGINE. hx509 supports this via pkcs11 and there is a gmp ENGINE
808         module supporting RSA. Also contains a MD2 digest for completion.
810 2005-07-20  Love Hörnquist Åstrand  <lha@it.su.se>
812         * des.c,des.h,rnd_keys.c: change unsigned char * to void *
814 2005-06-30  Love Hörnquist Åstrand  <lha@it.su.se>
816         * rnd_keys.c: const poision for unwriteable strings
818 2005-06-19  Love Hörnquist Åstrand  <lha@it.su.se>
820         * des.c,aes.c,rc2.c: Rename parameter, as encrypt shadows a
821         global, from Andrew Bartlett
823 2005-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
825         * rnd_keys.c: Include <stdlib.h> for srandom/random.
827 2005-05-29  Love Hörnquist Åstrand  <lha@it.su.se>
829         * des.c (DES_cbc_cksum): init u to make sure it have a value in
830         case of the empty in data
832         * destest.c: add test for the empty password ""
834 2005-05-27  Love Hörnquist Åstrand  <lha@it.su.se>
836         * rctest.c (cipher3): used unsigned char to avoid problems with
837         platforms using "signed char"
838         
839 2005-05-13  Love Hörnquist Åstrand  <lha@it.su.se>
841         * rc2.c: use unsigned char to avoid signess warning
843         * des.c: use unsigned char to avoid signess warning
845         * aes.c (AES_cbc_encrypt): use unsigned char to avoid signess
846         warning
848 2005-05-03  Dave Love  <fx@gnu.org>
850         * mdtest.c: Fix typo for HAVE_STDLIB_H.
852 2005-05-03  Love Hörnquist Åstrand  <lha@it.su.se>
854         * rnd_keys.c: Enabled to build on cygwin, based on patch from
855         David Love <fx@gnu.org>
857 2005-05-02  Dave Love  <fx@gnu.org>
859         * mdtest.c: Include <krb5-types.h>.
861 2005-04-30  Love Hörnquist Åstrand  <lha@it.su.se>
863         * ui.c: Include <des.h>.
864         (UI_UTIL_read_pw_string): make the prompt argument const.
866         * des.h (UI_UTIL_read_pw_string): make the prompt argument const
868         * ui.c (UI_UTIL_read_pw_string): remove unused variable plen
869         
870         * des.c: replace <strings.h> with <string.h>
871         
872 2005-04-29  Dave Love  <fx@gnu.org>
874         * Makefile.am: Add LIB_roken.
875         
876 2005-04-27  Dave Love  <fx@gnu.org>
878         * sha.c: Include hash.h first.
879         
880         * md4.c: Include hash.h first.
881         
882         * md5.c: Include hash.h first.
883         
884         * hash.h: Include krb5-types.h
885         
886 2005-04-26  Dave Love  <fx@gnu.org>
888         * mdtest.c: Maybe include stdlib.h
889         
890 2005-04-10  Love Hörnquist Åstrand  <lha@it.su.se>
892         * sha.h,md5.h, md4.h: don't include bit types, the user must do
893         that #ifdef wrap
894         
895         * aes.h: #ifdef wrap
897 2005-03-23  Love Hörnquist Åstrand  <lha@it.su.se>
899         * des.h: fix prototype for DES_random_key
901         * rnd_keys.c: fix prototype for DES_random_key
903         * des.[ch]: provide compatibility function DES_key_sched, same as
904         DES_set_key
906 2005-03-20  Love Hörnquist Åstrand  <lha@it.su.se>
908         * destest.c: include config.h and protect some headers
909         
910         * rnd_keys.c: move <des.h> to after include <krb5-types.h> so the
911         C99 integer types exists
913 2005-03-14  Love Hörnquist Åstrand  <lha@it.su.se>
915         * des.c: add DES_set_key_checked
917         * des.h: add DES_set_key_checked
919 2005-03-01  Love Hörnquist Åstrand  <lha@it.su.se>
920         
921         * des-tables.h: Add the missing file
922         
923 2005-02-23  Love Hörnquist Åstrand  <lha@it.su.se>
925         * ui.c: remove dependency on asprintf
927         * Makefile.am: make destest only once
929         * Replace the eay DES code with key scheule setup code by me and DES
930         s-box and p permutation from Richard Outerbridge implemtation (in
931         public domain).  The DES modes are implemented by me. ui.c code are
932         from appl/login.
934         The implementation is about 3 times slower then Eric for encryption,
935         and about the same speed for key setup.
938 2004-08-10  Love Hörnquist Åstrand  <lha@it.su.se>
940         * rnd_keys.c (DES_rand_data): also try /dev/arandom
942 2004-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
944         * rnd_keys.c: don't include krb4 headers
945         
946         * rijndael-alg-fst.c: don't include krb4 headers
947         
948         * aes.c: don't include krb4 headers
949         
950         * aes.h: define AES_{EN,DE}CRYPT; remove #ifdefs, this is an
951         installed file
953 2004-04-25  Love Hörnquist Åstrand  <lha@it.su.se>
955         * rc2.c: handle non blocksized cbc messages
957         * aes.[ch]: add AES_cbc_encrypt
959 2004-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
961         * rc2test.c: test vectors from RFC2268
962         
963         * rc2.c (RC2_set_key): rewrite the mask calculation
964         
965         * rc2.c (RC2_set_key): handle keys where effective bits are
966         diffrent from keylength
968 2004-04-23  Love Hörnquist Åstrand  <lha@it.su.se>
970         * rc2.c: rc2 implementation
971         
972         * rc2.h: rc2 implementation
973         
974         * rc2test.c: rc2 implementation
975         
976         * Makefile.am: rc2 implementation
978 2004-03-25  Love Hörnquist Åstrand  <lha@it.su.se>
980         * Makefile.am: new arcfour implementation
981         
982         * rc4.c: implemented from description in
983         draft-kaukonen-cipher-arcfour-03.txt
984         
985         * rc4.h: replace with new implementation
986         
987         * rc4_enc.c rc4_skey.c: remove 
989         * rctest.c: test for arcfour
990         
991 2003-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
993         * rnd_keys.c: uninitialized variable, from Panasas Inc
994         
995 2003-09-03  Love Hörnquist Åstrand  <lha@it.su.se>
997         * md4.c (MD4_Final): make the function threadsafe by removing
998         static on the local variable zeros
999         
1000         * md5.c (MD5_Final): make the function threadsafe by removing
1001         static on the local variable zeros
1003         * switch to the DES_ api, dont provide any compat glue
1005 2003-08-27  Love Hörnquist Åstrand  <lha@it.su.se>
1007         * sha.c: make the function threadsafe by removing static on the
1008         local variable zeros
1010 2003-07-23  Love Hörnquist Åstrand  <lha@it.su.se>
1012         * rijndael-alg-fst.h,rijndael-alg-fst.c,aes.c,aes.h:
1013         Makefile.am: add AES support
1015 2003-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
1017         * des.1: sunOS -> SunOS, from jmc <jmc@prioris.mini.pw.edu.pl>
1018         
1019 2003-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
1021         * des.1: spelling, from <jmc@prioris.mini.pw.edu.pl>
1022         
1023 2002-08-28  Johan Danielsson  <joda@pdc.kth.se>
1025         * read_pwd.c: move NeXT SGTTY stuff here
1027 2001-05-17  Assar Westerlund  <assar@sics.se>
1029         * Makefile.am: bump version to 3:1:0
1031 2001-05-11  Assar Westerlund  <assar@sics.se>
1033         * str2key.c (des_string_to_key, des_string_to_2keys): avoid weak
1034         keys
1036 2001-02-16  Assar Westerlund  <assar@sics.se>
1038         * set_key.c: correct weak keys and update comment
1040 2001-02-14  Assar Westerlund  <assar@sics.se>
1042         * set_key.c: correct the two last weak keys in accordance with
1043         FIPS 74.  noted by <jhutz@cmu.edu>
1045 2001-01-30  Assar Westerlund  <assar@sics.se>
1047         * Makefile.am (libdes_la_LDFLAGS): bump version to 3:0:0
1049 2000-10-19  Assar Westerlund  <assar@sics.se>
1051         * Makefile.in (LIBSRC, LIBOBJ): add rc4* and enc_{read,write}
1052         files so that this library contains the same things as libdes in
1053         Heimdal
1055 2000-08-16  Assar Westerlund  <assar@sics.se>
1057         * Makefile.am: bump version to 2:1:0
1059 2000-08-03  Johan Danielsson  <joda@pdc.kth.se>
1061         * enc_writ.c: BSIZE -> des_BSIZE to avoid conflicts with AIX
1062         jfs/fsparam.h
1064         * enc_read.c: BSIZE -> des_BSIZE to avoid conflicts with AIX
1065         jfs/fsparam.h
1067         * des_locl.h: BSIZE -> des_BSIZE to avoid conflicts with AIX
1068         jfs/fsparam.h
1070 2000-02-07  Assar Westerlund  <assar@sics.se>
1072         * Makefile.am: set version to 2:0:0
1074 2000-01-26  Assar Westerlund  <assar@sics.se>
1076         * mdtest.c: update to pseudo-standard APIs for md4,md5,sha.
1077         * md4.c, md4.h, md5.c, md5.h, sha.c, sha.h: move to the
1078         pseudo-standard APIs
1080 1999-12-06  Assar Westerlund  <assar@sics.se>
1082         * Makefile.am: set version to 1:0:1
1084 1999-11-29  Assar Westerlund  <assar@sics.se>
1086         * fcrypt.c (crypt_md5): add trailing $
1087         
1088 1999-11-13  Assar Westerlund  <assar@sics.se>
1090         * Makefile.am (include_HEADERS): add rc4.h
1091         (libdes_la_SOURCES): add rc4_skey.c
1093 1999-10-28  Assar Westerlund  <assar@sics.se>
1095         * md5crypt_test.c: change the test case.  apparently we should not
1096         include $ after the salt.  also make it print more useful stuff
1097         when failing.
1099 1999-10-20  Assar Westerlund  <assar@sics.se>
1101         * Makefile.am: bump version to 0:2:0
1103 1999-09-21  Johan Danielsson  <joda@pdc.kth.se>
1105         * des.h: make this work with mips 64-bit abi
1107 1999-08-14  Johan Danielsson  <joda@pdc.kth.se>
1109         * fcrypt.c (crypt_md5): don't use snprintf
1111 1999-08-13  Assar Westerlund  <assar@sics.se>
1113         * Makefile.am: add md5crypt_test
1115         * Makefile.in: add md5crypt_test
1117         * md5crypt_test.c: test md5 crypt
1119         * fcrypt.c: always enable md5 crypt
1121 1999-07-26  Johan Danielsson  <joda@pdc.kth.se>
1123         * Makefile.am: bump version number (changes to md*, sha)
1125 1999-06-15  Assar Westerlund  <assar@sics.se>
1127         * sha.c (swap_u_int32_t): add _CRAY
1129 Sat Apr 10 23:02:30 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1131         * destest.c: fixes for crays
1133 Thu Apr  1 11:26:38 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1135         * Makefile.am: noinst_PROGRAMS -> check_PROGRAMS; add TESTS; don't
1136         build rpw, and speed
1138 Mon Mar 22 20:16:26 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1140         * Makefile.am: hash.h
1142         * sha.c: use hash.h; fixes for crays
1144         * md5.c: use hash.h; fixes for crays
1146         * md4.c: use hash.h; fixes for crays
1148         * hash.h: common stuff from md4, md5, and sha1
1150 Sat Mar 20 00:16:53 1999  Assar Westerlund  <assar@sics.se>
1152         * rnd_keys.c (des_rand_data): move declaration to get rid of
1153         warning
1155 Thu Mar 18 11:22:28 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1157         * Makefile.am: include Makefile.am.common
1159 Mon Mar 15 17:36:41 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
1161         * rnd_keys.c (des_rand_data): if not using setitimer, block
1162         SIGCHLD around fork(), also make sure we get the status of the
1163         child process
1164         (fake_signal): emulate signal using sigaction
1166 Tue Jan 12 05:06:54 1999  Assar Westerlund  <assar@sics.se>
1168         * des.h: sparcv9 is also 64 bits, use `unsigned int' instead of
1169         `unsigned long'
1171 Sun Nov 22 10:40:09 1998  Assar Westerlund  <assar@sics.se>
1173         * Makefile.in (WFLAGS): set
1175 Mon May 25 05:24:56 1998  Assar Westerlund  <assar@sics.se>
1177         * Makefile.in (clean): try to remove shared library debris
1179 Sun Apr 19 09:50:53 1998  Assar Westerlund  <assar@sics.se>
1181         * Makefile.in: add symlink magic for linux
1183 Sun Nov  9 07:14:45 1997  Assar Westerlund  <assar@sics.se>
1185         * mdtest.c: print out old and new string