1*ebfedea0SLionel Sambuc2008-06-26 Love Hörnquist Åstrand <lha@kth.se> 2*ebfedea0SLionel Sambuc 3*ebfedea0SLionel Sambuc * ui.c: Send newline from use to stderr, just like the 4*ebfedea0SLionel Sambuc prompt. From Ted Percival. 5*ebfedea0SLionel Sambuc 6*ebfedea0SLionel Sambuc2008-05-20 Love Hörnquist Åstrand <lha@kth.se> 7*ebfedea0SLionel Sambuc 8*ebfedea0SLionel Sambuc * rand-fortuna.c: If we forked, force a reseed again. Add the pid 9*ebfedea0SLionel Sambuc as part of the reseed(). 10*ebfedea0SLionel Sambuc 11*ebfedea0SLionel Sambuc2008-04-29 Björn Sandell <biorn@chalmers.se> 12*ebfedea0SLionel Sambuc 13*ebfedea0SLionel Sambuc * des.h: Add DES_set_key_unchecked 14*ebfedea0SLionel Sambuc 15*ebfedea0SLionel Sambuc * version-script.map: Export DES_set_key_unchecked 16*ebfedea0SLionel Sambuc 17*ebfedea0SLionel Sambuc2008-04-29 Love Hörnquist Åstrand <lha@it.su.se> 18*ebfedea0SLionel Sambuc 19*ebfedea0SLionel Sambuc * evp.c: EVP_MD_CTX_init already implemented. 20*ebfedea0SLionel Sambuc 21*ebfedea0SLionel Sambuc2008-04-28 Love Hörnquist Åstrand <lha@it.su.se> 22*ebfedea0SLionel Sambuc 23*ebfedea0SLionel Sambuc * evp.[ch]: deprecate functions that are needed for exported 24*ebfedea0SLionel Sambuc EVP_MD_CTX. 25*ebfedea0SLionel Sambuc 26*ebfedea0SLionel Sambuc * evp.h: Internalize hc_EVP_MD_CTX. 27*ebfedea0SLionel Sambuc 28*ebfedea0SLionel Sambuc * evp.c: Internalize hc_EVP_MD_CTX. 29*ebfedea0SLionel Sambuc 30*ebfedea0SLionel Sambuc * mdtest.c: Use EVP_MD_CTX_create()/EVP_MD_CTX_destroy(). 31*ebfedea0SLionel Sambuc 32*ebfedea0SLionel Sambuc * test_cipher.c: unbreak des-test 33*ebfedea0SLionel Sambuc 34*ebfedea0SLionel Sambuc * evp.c: Fixup key parity before going ahead and using the key. 35*ebfedea0SLionel Sambuc 36*ebfedea0SLionel Sambuc * evp.c: use DES_set_key_unchecked(). 37*ebfedea0SLionel Sambuc 38*ebfedea0SLionel Sambuc * des.c: Remove inifinite loop in DES_set_key(). 39*ebfedea0SLionel Sambuc 40*ebfedea0SLionel Sambuc2008-04-27 Love Hörnquist Åstrand <lha@it.su.se> 41*ebfedea0SLionel Sambuc 42*ebfedea0SLionel Sambuc * des.c: Document missing functions, add DES_check_key_parity(). 43*ebfedea0SLionel Sambuc 44*ebfedea0SLionel Sambuc * des.h: Add DES_check_key_parity, deprecate DES_set_key. 45*ebfedea0SLionel Sambuc 46*ebfedea0SLionel Sambuc * version-script.map: Export DES_check_key_parity. 47*ebfedea0SLionel Sambuc 48*ebfedea0SLionel Sambuc * des.h: DES_set_odd_parity "returns" void. 49*ebfedea0SLionel Sambuc 50*ebfedea0SLionel Sambuc * rand.c: Drop const warnings. 51*ebfedea0SLionel Sambuc 52*ebfedea0SLionel Sambuc * des.h: Sort options. 53*ebfedea0SLionel Sambuc 54*ebfedea0SLionel Sambuc2008-04-18 Love Hörnquist Åstrand <lha@it.su.se> 55*ebfedea0SLionel Sambuc 56*ebfedea0SLionel Sambuc * pkcs5.c: Document PKCS5_PBKDF2_HMAC_SHA1. 57*ebfedea0SLionel Sambuc 58*ebfedea0SLionel Sambuc * des.c: DES is withdrawn. 59*ebfedea0SLionel Sambuc 60*ebfedea0SLionel Sambuc * des.c: Document using doxygen. 61*ebfedea0SLionel Sambuc 62*ebfedea0SLionel Sambuc * des.c: History of DES. 63*ebfedea0SLionel Sambuc 64*ebfedea0SLionel Sambuc * doxygen.c: History of hcrypto. 65*ebfedea0SLionel Sambuc 66*ebfedea0SLionel Sambuc * test_rand.c: do a head vs tail test on the random buffer. 67*ebfedea0SLionel Sambuc 68*ebfedea0SLionel Sambuc * test_crypto.in: Use --file to test_rand. 69*ebfedea0SLionel Sambuc 70*ebfedea0SLionel Sambuc * rand.c: Document, implement RAND_set_rand_engine(). 71*ebfedea0SLionel Sambuc 72*ebfedea0SLionel Sambuc * doxygen.c: Add reference to DES, more quick links. 73*ebfedea0SLionel Sambuc 74*ebfedea0SLionel Sambuc * rnd_keys.c: Reimplement using RAND_ interface. 75*ebfedea0SLionel Sambuc 76*ebfedea0SLionel Sambuc * des.h: Undeprecate DES_new_random_key. 77*ebfedea0SLionel Sambuc 78*ebfedea0SLionel Sambuc * des.c: Add documentation. 79*ebfedea0SLionel Sambuc 80*ebfedea0SLionel Sambuc2008-04-15 Love Hörnquist Åstrand <lha@it.su.se> 81*ebfedea0SLionel Sambuc 82*ebfedea0SLionel Sambuc * camellia-ntt.h: Move the typedef u<num> to camellia-ntt.h header 83*ebfedea0SLionel Sambuc file. Use u32 to define KEY_TABLE_TYPE, avoids warning on 84*ebfedea0SLionel Sambuc platfors where u32 is not unsigned int. 85*ebfedea0SLionel Sambuc 86*ebfedea0SLionel Sambuc * camellia-ntt.c: Move the typedef u<num> to camellia-ntt.h 87*ebfedea0SLionel Sambuc header file. 88*ebfedea0SLionel Sambuc 89*ebfedea0SLionel Sambuc * camellia.h: Drop need to camellia-ntt.h by including some more 90*ebfedea0SLionel Sambuc defines. 91*ebfedea0SLionel Sambuc 92*ebfedea0SLionel Sambuc2008-04-11 Love Hörnquist Åstrand <lha@it.su.se> 93*ebfedea0SLionel Sambuc 94*ebfedea0SLionel Sambuc * rnd_keys.c: deprecated. 95*ebfedea0SLionel Sambuc 96*ebfedea0SLionel Sambuc * des.h: c++ wrappers + deprecated. 97*ebfedea0SLionel Sambuc 98*ebfedea0SLionel Sambuc * aes.h: c++ wrappers 99*ebfedea0SLionel Sambuc 100*ebfedea0SLionel Sambuc * des.h: c++ wrappers + deprecated 101*ebfedea0SLionel Sambuc 102*ebfedea0SLionel Sambuc * rnd_keys.c: Use matching prototypes, prompted by bug report by 103*ebfedea0SLionel Sambuc David Rosenstrauch. 104*ebfedea0SLionel Sambuc 105*ebfedea0SLionel Sambuc2008-03-19 Love Hörnquist Åstrand <lha@it.su.se> 106*ebfedea0SLionel Sambuc 107*ebfedea0SLionel Sambuc * camellia.h: Drop unused defined that originates from aes. 108*ebfedea0SLionel Sambuc 109*ebfedea0SLionel Sambuc2008-01-11 Love Hörnquist Åstrand <lha@it.su.se> 110*ebfedea0SLionel Sambuc 111*ebfedea0SLionel Sambuc * Makefile.am: Add extra files missing from dist. 112*ebfedea0SLionel Sambuc 113*ebfedea0SLionel Sambuc2007-12-30 Love Hörnquist Åstrand <lha@it.su.se> 114*ebfedea0SLionel Sambuc 115*ebfedea0SLionel Sambuc * rsa.c: ENGINE_get_default_RSA can return NULL. 116*ebfedea0SLionel Sambuc 117*ebfedea0SLionel Sambuc * dh.c: more doxygen. 118*ebfedea0SLionel Sambuc 119*ebfedea0SLionel Sambuc2007-12-28 Love Hörnquist Åstrand <lha@it.su.se> 120*ebfedea0SLionel Sambuc 121*ebfedea0SLionel Sambuc * evp.c: Add last of the doxygen documentation for functions in 122*ebfedea0SLionel Sambuc this module. 123*ebfedea0SLionel Sambuc 124*ebfedea0SLionel Sambuc * evp.c: complete the EVP_MD functions doxygen. 125*ebfedea0SLionel Sambuc 126*ebfedea0SLionel Sambuc2007-12-11 Love Hörnquist Åstrand <lha@it.su.se> 127*ebfedea0SLionel Sambuc 128*ebfedea0SLionel Sambuc * version-script.map: export RSA_gmp_method. 129*ebfedea0SLionel Sambuc 130*ebfedea0SLionel Sambuc * doxygen.c: More documentation. 131*ebfedea0SLionel Sambuc 132*ebfedea0SLionel Sambuc * rsa.h: add RSA_gmp_method 133*ebfedea0SLionel Sambuc 134*ebfedea0SLionel Sambuc * rsa-gmp.c: RSA implementation written using GMP. 135*ebfedea0SLionel Sambuc 136*ebfedea0SLionel Sambuc * test_dh.c: Test of DH by Matthias Koenig. 137*ebfedea0SLionel Sambuc 138*ebfedea0SLionel Sambuc2007-12-09 Love Hörnquist Åstrand <lha@it.su.se> 139*ebfedea0SLionel Sambuc 140*ebfedea0SLionel Sambuc * bn.h (BN_is_negative): make argument const. 141*ebfedea0SLionel Sambuc 142*ebfedea0SLionel Sambuc2007-12-07 Love Hörnquist Åstrand <lha@it.su.se> 143*ebfedea0SLionel Sambuc 144*ebfedea0SLionel Sambuc * rand.c: Can't call getpwuid(getuid()) at all since that causes 145*ebfedea0SLionel Sambuc recursive lookups. Pointed out by Hai Zaar. 146*ebfedea0SLionel Sambuc 147*ebfedea0SLionel Sambuc2007-08-16 Love Hörnquist Åstrand <lha@it.su.se> 148*ebfedea0SLionel Sambuc 149*ebfedea0SLionel Sambuc * test_cipher.c: Use test from camellia samples. 150*ebfedea0SLionel Sambuc 151*ebfedea0SLionel Sambuc * version-script.map: Export camellia. 152*ebfedea0SLionel Sambuc 153*ebfedea0SLionel Sambuc * test_cipher.c: Make camellia-128-cbc tests pass. 154*ebfedea0SLionel Sambuc 155*ebfedea0SLionel Sambuc2007-08-07 Love Hörnquist Åstrand <lha@it.su.se> 156*ebfedea0SLionel Sambuc 157*ebfedea0SLionel Sambuc * test_cipher.c: Sprinkle EVP cipher names. 158*ebfedea0SLionel Sambuc 159*ebfedea0SLionel Sambuc2007-07-30 David Love <fx@gnu.org> 160*ebfedea0SLionel Sambuc 161*ebfedea0SLionel Sambuc * camellia-ntt.c: Include <krb5-types.h> 162*ebfedea0SLionel Sambuc 163*ebfedea0SLionel Sambuc2007-07-24 Love Hörnquist Åstrand <lha@it.su.se> 164*ebfedea0SLionel Sambuc 165*ebfedea0SLionel Sambuc * Add Camellia. 166*ebfedea0SLionel Sambuc 167*ebfedea0SLionel Sambuc2007-07-10 Love Hörnquist Åstrand <lha@it.su.se> 168*ebfedea0SLionel Sambuc 169*ebfedea0SLionel Sambuc * Makefile.am: New library version. 170*ebfedea0SLionel Sambuc 171*ebfedea0SLionel Sambuc2007-06-30 Love Hörnquist Åstrand <lha@it.su.se> 172*ebfedea0SLionel Sambuc 173*ebfedea0SLionel Sambuc * hmac.c (HMAC_Init_ex): also zero out key material on re-init. 174*ebfedea0SLionel Sambuc 175*ebfedea0SLionel Sambuc2007-06-20 Love Hörnquist Åstrand <lha@it.su.se> 176*ebfedea0SLionel Sambuc 177*ebfedea0SLionel Sambuc * rand.c: Default to fortuna due to weired /dev/*random that 178*ebfedea0SLionel Sambuc failes to deliver random data for us in hi load situations. 179*ebfedea0SLionel Sambuc 180*ebfedea0SLionel Sambuc * rand-fortuna.c: Reseed the random generator now and then from 181*ebfedea0SLionel Sambuc external sources. 182*ebfedea0SLionel Sambuc 183*ebfedea0SLionel Sambuc2007-06-19 Love Hörnquist Åstrand <lha@it.su.se> 184*ebfedea0SLionel Sambuc 185*ebfedea0SLionel Sambuc * rand-egd.c: Avoid stoping unrelated memory. 186*ebfedea0SLionel Sambuc 187*ebfedea0SLionel Sambuc2007-06-18 Love Hörnquist Åstrand <lha@it.su.se> 188*ebfedea0SLionel Sambuc 189*ebfedea0SLionel Sambuc * rand-fortuna.c: Use /etc/shadow, not /dev/shadow, pointed out by 190*ebfedea0SLionel Sambuc Andrew Bartlett 191*ebfedea0SLionel Sambuc 192*ebfedea0SLionel Sambuc * Makefile.am: add rand-timer.c 193*ebfedea0SLionel Sambuc 194*ebfedea0SLionel Sambuc * rand-fortuna.c: Fall back to gattering data from timer and 195*ebfedea0SLionel Sambuc secret files, this is really the last resort. 196*ebfedea0SLionel Sambuc 197*ebfedea0SLionel Sambuc * rand-timer.c: Pick up timing diffrences in the timeing info from 198*ebfedea0SLionel Sambuc realtime timer, only in use as a last resort. 199*ebfedea0SLionel Sambuc 200*ebfedea0SLionel Sambuc * version-script.map: Add hc_RAND_timer_method. 201*ebfedea0SLionel Sambuc 202*ebfedea0SLionel Sambuc2007-06-10 Love Hörnquist Åstrand <lha@it.su.se> 203*ebfedea0SLionel Sambuc 204*ebfedea0SLionel Sambuc * test_bn.c: Add <rand.h>. 205*ebfedea0SLionel Sambuc 206*ebfedea0SLionel Sambuc * test_crypto.in: Test for random device before running the tests. 207*ebfedea0SLionel Sambuc 208*ebfedea0SLionel Sambuc * test_engine_dso.c: Test for random device. 209*ebfedea0SLionel Sambuc 210*ebfedea0SLionel Sambuc * test_bn.c (test_BN_rand): skip this test if there is no random 211*ebfedea0SLionel Sambuc device 212*ebfedea0SLionel Sambuc 213*ebfedea0SLionel Sambuc2007-06-07 Love Hörnquist Åstrand <lha@it.su.se> 214*ebfedea0SLionel Sambuc 215*ebfedea0SLionel Sambuc * Makefile.am: Include more ui.[ch] in libbctest. 216*ebfedea0SLionel Sambuc 217*ebfedea0SLionel Sambuc * version-script.map: Unexport _hc_DES_ipfp_test now there is a 218*ebfedea0SLionel Sambuc separate test lib. 219*ebfedea0SLionel Sambuc 220*ebfedea0SLionel Sambuc * Makefile.am: Build library libhctest.la for testing and link 221*ebfedea0SLionel Sambuc with that when testing. 222*ebfedea0SLionel Sambuc 223*ebfedea0SLionel Sambuc * version-script.map: export _hc_DES_ipfp_test 224*ebfedea0SLionel Sambuc 225*ebfedea0SLionel Sambuc2007-06-03 Love Hörnquist Åstrand <lha@it.su.se> 226*ebfedea0SLionel Sambuc 227*ebfedea0SLionel Sambuc * imath: new update from Michael Fromberger 228*ebfedea0SLionel Sambuc 229*ebfedea0SLionel Sambuc * test_imath.c: Try to find ABR in mp_int_mul. 230*ebfedea0SLionel Sambuc 231*ebfedea0SLionel Sambuc * engine.c: Don't try to load gmp module. 232*ebfedea0SLionel Sambuc 233*ebfedea0SLionel Sambuc2007-06-02 Love Hörnquist Åstrand <lha@it.su.se> 234*ebfedea0SLionel Sambuc 235*ebfedea0SLionel Sambuc * test_bn.c: Plug memory leak. 236*ebfedea0SLionel Sambuc 237*ebfedea0SLionel Sambuc2007-05-31 Love Hörnquist Åstrand <lha@it.su.se> 238*ebfedea0SLionel Sambuc 239*ebfedea0SLionel Sambuc * imath/imath.[ch]: New snapshot for Michael Fromberger, lets see if 240*ebfedea0SLionel Sambuc this corrupts memory less. 241*ebfedea0SLionel Sambuc 242*ebfedea0SLionel Sambuc2007-05-30 Love Hörnquist Åstrand <lha@it.su.se> 243*ebfedea0SLionel Sambuc 244*ebfedea0SLionel Sambuc * version-script.map: Don't prefix all symbols with _ 245*ebfedea0SLionel Sambuc 246*ebfedea0SLionel Sambuc2007-05-10 Love Hörnquist Åstrand <lha@it.su.se> 247*ebfedea0SLionel Sambuc 248*ebfedea0SLionel Sambuc * test_pkcs12.c: test the difference between "" and NULL password. 249*ebfedea0SLionel Sambuc 250*ebfedea0SLionel Sambuc * test_pkcs12.c: one more pkcs12-pbe-s2k check 251*ebfedea0SLionel Sambuc 252*ebfedea0SLionel Sambuc2007-04-20 Love Hörnquist Åstrand <lha@it.su.se> 253*ebfedea0SLionel Sambuc 254*ebfedea0SLionel Sambuc * Add version-script 255*ebfedea0SLionel Sambuc 256*ebfedea0SLionel Sambuc * test_crypto.in: try generate a couple of rsa keys of 257*ebfedea0SLionel Sambuc diffrent (random) sizes, spelling. 258*ebfedea0SLionel Sambuc 259*ebfedea0SLionel Sambuc * test_rsa.c: try generate a couple of rsa keys of 260*ebfedea0SLionel Sambuc diffrent (random) sizes. 261*ebfedea0SLionel Sambuc 262*ebfedea0SLionel Sambuc2007-04-19 Love Hörnquist Åstrand <lha@it.su.se> 263*ebfedea0SLionel Sambuc 264*ebfedea0SLionel Sambuc * mdtest.c: stop leaking memory 265*ebfedea0SLionel Sambuc 266*ebfedea0SLionel Sambuc * test_imath.c: fix warnings, make test into function. 267*ebfedea0SLionel Sambuc 268*ebfedea0SLionel Sambuc * test_imath.c: shortest program causing the problem. 269*ebfedea0SLionel Sambuc 270*ebfedea0SLionel Sambuc * test_imath.c: basic imath test 271*ebfedea0SLionel Sambuc 272*ebfedea0SLionel Sambuc2007-04-18 Love Hörnquist Åstrand <lha@it.su.se> 273*ebfedea0SLionel Sambuc 274*ebfedea0SLionel Sambuc * test_cipher.c (test_cipher): avoid leaking memory 275*ebfedea0SLionel Sambuc 276*ebfedea0SLionel Sambuc2007-04-17 Love Hörnquist Åstrand <lha@it.su.se> 277*ebfedea0SLionel Sambuc 278*ebfedea0SLionel Sambuc * rsa.c: plug memory leak 279*ebfedea0SLionel Sambuc 280*ebfedea0SLionel Sambuc2007-04-16 Love Hörnquist Åstrand <lha@it.su.se> 281*ebfedea0SLionel Sambuc 282*ebfedea0SLionel Sambuc * Makefile.am: CLEANFILES += test.file 283*ebfedea0SLionel Sambuc 284*ebfedea0SLionel Sambuc2007-04-15 Love Hörnquist Åstrand <lha@it.su.se> 285*ebfedea0SLionel Sambuc 286*ebfedea0SLionel Sambuc * Makefile.am: Add randi.h. 287*ebfedea0SLionel Sambuc 288*ebfedea0SLionel Sambuc2007-04-11 Love Hörnquist Åstrand <lha@it.su.se> 289*ebfedea0SLionel Sambuc 290*ebfedea0SLionel Sambuc * rsa.c: spelling. 291*ebfedea0SLionel Sambuc 292*ebfedea0SLionel Sambuc2007-02-01 Love Hörnquist Åstrand <lha@it.su.se> 293*ebfedea0SLionel Sambuc 294*ebfedea0SLionel Sambuc * rand.c: Name the random file ~/.rnd, this is the same as 295*ebfedea0SLionel Sambuc OpenSSL. 296*ebfedea0SLionel Sambuc 297*ebfedea0SLionel Sambuc2007-01-31 Love Hörnquist Åstrand <lha@it.su.se> 298*ebfedea0SLionel Sambuc 299*ebfedea0SLionel Sambuc * rand-egd.c: Make get_bytes static. 300*ebfedea0SLionel Sambuc 301*ebfedea0SLionel Sambuc * rand.c (RAND_write_file): default to failure. 302*ebfedea0SLionel Sambuc 303*ebfedea0SLionel Sambuc2007-01-30 Love Hörnquist Åstrand <lha@it.su.se> 304*ebfedea0SLionel Sambuc 305*ebfedea0SLionel Sambuc * rand.c: Implement RAND_file_name. 306*ebfedea0SLionel Sambuc 307*ebfedea0SLionel Sambuc * test_rand.c: test RAND_file_name(). 308*ebfedea0SLionel Sambuc 309*ebfedea0SLionel Sambuc * rand.c: Provide dummy implementation of RAND_file_name. 310*ebfedea0SLionel Sambuc 311*ebfedea0SLionel Sambuc * rand.h: add RAND_file_name 312*ebfedea0SLionel Sambuc 313*ebfedea0SLionel Sambuc2007-01-21 Love Hörnquist Åstrand <lha@it.su.se> 314*ebfedea0SLionel Sambuc 315*ebfedea0SLionel Sambuc * Makefile.am: clean more files 316*ebfedea0SLionel Sambuc 317*ebfedea0SLionel Sambuc * rand-egd.c: access private functions though the RAND_METHOD 318*ebfedea0SLionel Sambuc switch, move global egd function to rand-egd.c 319*ebfedea0SLionel Sambuc 320*ebfedea0SLionel Sambuc * rand-fortuna.c: access private functions though the RAND_METHOD 321*ebfedea0SLionel Sambuc switch 322*ebfedea0SLionel Sambuc 323*ebfedea0SLionel Sambuc * rand-unix.c: unexport private functions. 324*ebfedea0SLionel Sambuc 325*ebfedea0SLionel Sambuc * randi.h: Unexport internal functions. 326*ebfedea0SLionel Sambuc 327*ebfedea0SLionel Sambuc * rand.c: access private functions though the RAND_METHOD switch, 328*ebfedea0SLionel Sambuc don't truncate the seed-file, move global egd function to 329*ebfedea0SLionel Sambuc rand-egd.c 330*ebfedea0SLionel Sambuc 331*ebfedea0SLionel Sambuc * test_crypto.in: add basic random tests 332*ebfedea0SLionel Sambuc 333*ebfedea0SLionel Sambuc * rand-egd.c: SGI cc doesn' like return void_returning_function(); 334*ebfedea0SLionel Sambuc in a void returning function. 335*ebfedea0SLionel Sambuc 336*ebfedea0SLionel Sambuc2007-01-20 Love Hörnquist Åstrand <lha@it.su.se> 337*ebfedea0SLionel Sambuc 338*ebfedea0SLionel Sambuc * test_rand.c: Allow select rand method. 339*ebfedea0SLionel Sambuc 340*ebfedea0SLionel Sambuc * rand-unix.c: expose _hc_rand_unix_status 341*ebfedea0SLionel Sambuc 342*ebfedea0SLionel Sambuc * randi.h: expose _hc_rand_unix_status and the internal 343*ebfedea0SLionel Sambuc RAND_METHODs 344*ebfedea0SLionel Sambuc 345*ebfedea0SLionel Sambuc * rand.c: Implement RAND_load_file and RAND_write_file. Select 346*ebfedea0SLionel Sambuc UNIX random device if available, otherwise use Fortuna. 347*ebfedea0SLionel Sambuc 348*ebfedea0SLionel Sambuc * Add EGD/PRNGD support 349*ebfedea0SLionel Sambuc 350*ebfedea0SLionel Sambuc2007-01-17 Love Hörnquist Åstrand <lha@it.su.se> 351*ebfedea0SLionel Sambuc 352*ebfedea0SLionel Sambuc * fortuna: Add fortuna based on Marko Kreen's pgcrypt, no enabled yet 353*ebfedea0SLionel Sambuc 354*ebfedea0SLionel Sambuc2007-01-11 Love Hörnquist Åstrand <lha@it.su.se> 355*ebfedea0SLionel Sambuc 356*ebfedea0SLionel Sambuc * test_rsa.c: if RAND is unhappy, don't run the tests. 357*ebfedea0SLionel Sambuc 358*ebfedea0SLionel Sambuc * test_engine_dso.c: if RAND is unhappy, don't run the tests. 359*ebfedea0SLionel Sambuc 360*ebfedea0SLionel Sambuc * imath/imath.c: Update to imath-1.8 from Michael Fromberger 361*ebfedea0SLionel Sambuc 362*ebfedea0SLionel Sambuc Fixed a bug in s_udiv() affecting the computation of quotient 363*ebfedea0SLionel Sambuc digits. Thanks to Love Åstrand for isolating this bug. Also in 364*ebfedea0SLionel Sambuc this release, defining USELLONG=Y or USELLONG=N on the command 365*ebfedea0SLionel Sambuc line for make will switch support for the "long long" data type on 366*ebfedea0SLionel Sambuc or off without having to edit the Makefile. The default is still 367*ebfedea0SLionel Sambuc to permit use of "long long", even though the type is not standard 368*ebfedea0SLionel Sambuc ANSI C90. 369*ebfedea0SLionel Sambuc 370*ebfedea0SLionel Sambuc * imath/imath.c (s_udiv): Allocate one more for q, remove debug 371*ebfedea0SLionel Sambuc printfs 372*ebfedea0SLionel Sambuc 373*ebfedea0SLionel Sambuc2007-01-10 Love Hörnquist Åstrand <lha@it.su.se> 374*ebfedea0SLionel Sambuc 375*ebfedea0SLionel Sambuc * imath/imath.c (s_udiv): make a copy of a and b before we start 376*ebfedea0SLionel Sambuc to make sure there is something un-tainted to print in cause of 377*ebfedea0SLionel Sambuc failure. XXX remove this delta 378*ebfedea0SLionel Sambuc (s_embar): make static 379*ebfedea0SLionel Sambuc 380*ebfedea0SLionel Sambuc2007-01-09 Love Hörnquist Åstrand <lha@it.su.se> 381*ebfedea0SLionel Sambuc 382*ebfedea0SLionel Sambuc * rsa.c: Correct the test if the rsa is a complete RSA private 383*ebfedea0SLionel Sambuc key. 384*ebfedea0SLionel Sambuc 385*ebfedea0SLionel Sambuc2007-01-08 Love Hörnquist Åstrand <lha@it.su.se> 386*ebfedea0SLionel Sambuc 387*ebfedea0SLionel Sambuc * imath/imath.c: More verbose debugging in case of assertion 388*ebfedea0SLionel Sambuc failure. XXX temporary for AIX problem. 389*ebfedea0SLionel Sambuc 390*ebfedea0SLionel Sambuc2007-01-06 Love Hörnquist Åstrand <lha@it.su.se> 391*ebfedea0SLionel Sambuc 392*ebfedea0SLionel Sambuc * rsa-imath.c: Fix a silly typo, and with that enable CRT since 393*ebfedea0SLionel Sambuc now it works. 394*ebfedea0SLionel Sambuc 395*ebfedea0SLionel Sambuc * rsa-imath.c: With this crt works, but something is wrong in the 396*ebfedea0SLionel Sambuc key generation, so keep it turned off for now. 397*ebfedea0SLionel Sambuc 398*ebfedea0SLionel Sambuc * test_rsa.c: Allow testing effect of key-blinding 399*ebfedea0SLionel Sambuc 400*ebfedea0SLionel Sambuc * test_rsa.c: Add timing info to rsa keygen. 401*ebfedea0SLionel Sambuc 402*ebfedea0SLionel Sambuc * rsa-imath.c: don't include <imath/rsamath.h> 403*ebfedea0SLionel Sambuc 404*ebfedea0SLionel Sambuc2007-01-05 Love Hörnquist Åstrand <lha@it.su.se> 405*ebfedea0SLionel Sambuc 406*ebfedea0SLionel Sambuc * imath: prune off stuff we dont use 407*ebfedea0SLionel Sambuc 408*ebfedea0SLionel Sambuc * imath/import.sh: Prune off stuff we don't use from imathsource 409*ebfedea0SLionel Sambuc 410*ebfedea0SLionel Sambuc * Makefile.am: Prune off stuff we don't use from imathsource 411*ebfedea0SLionel Sambuc 412*ebfedea0SLionel Sambuc * rsa-imath.c: Use mp_int_exptmod directly. 413*ebfedea0SLionel Sambuc 414*ebfedea0SLionel Sambuc * imath/iprime.c: Use a larger table of small primes, cut down 415*ebfedea0SLionel Sambuc genenration in best cases to half compared to using a small table. 416*ebfedea0SLionel Sambuc 417*ebfedea0SLionel Sambuc * rsa.h: add RSA_FLAG_NO_BLINDING 418*ebfedea0SLionel Sambuc 419*ebfedea0SLionel Sambuc * rsa-imath.c: Add keyblinding, add a commented out CRT based RSA. 420*ebfedea0SLionel Sambuc 421*ebfedea0SLionel Sambuc * rsa.c: Add iqmp. 422*ebfedea0SLionel Sambuc 423*ebfedea0SLionel Sambuc2007-01-04 Love Hörnquist Åstrand <lha@it.su.se> 424*ebfedea0SLionel Sambuc 425*ebfedea0SLionel Sambuc * rsa.c: add missing ; 426*ebfedea0SLionel Sambuc 427*ebfedea0SLionel Sambuc * rsa.c: Add i2d_RSAPrivateKey. 428*ebfedea0SLionel Sambuc 429*ebfedea0SLionel Sambuc * rsa.h: Add i2d_RSAPrivateKey. 430*ebfedea0SLionel Sambuc 431*ebfedea0SLionel Sambuc * test_rsa.c: test RSA_generate_key_ex 432*ebfedea0SLionel Sambuc 433*ebfedea0SLionel Sambuc * rsa-imath.c: Add imath_rsa_generate_key. 434*ebfedea0SLionel Sambuc 435*ebfedea0SLionel Sambuc2006-12-31 Love Hörnquist Åstrand <lha@it.su.se> 436*ebfedea0SLionel Sambuc 437*ebfedea0SLionel Sambuc * rsa.c: add RSA_generate_key_ex 438*ebfedea0SLionel Sambuc 439*ebfedea0SLionel Sambuc * rsa.h: add RSA_generate_key_ex 440*ebfedea0SLionel Sambuc 441*ebfedea0SLionel Sambuc2006-12-07 Love Hörnquist Åstrand <lha@it.su.se> 442*ebfedea0SLionel Sambuc 443*ebfedea0SLionel Sambuc * Makefile.am: CLEANFILES += test_crypto 444*ebfedea0SLionel Sambuc 445*ebfedea0SLionel Sambuc2006-12-06 Love Hörnquist Åstrand <lha@it.su.se> 446*ebfedea0SLionel Sambuc 447*ebfedea0SLionel Sambuc * Makefile.am: Add rsakey.der to EXTRA_DIST. 448*ebfedea0SLionel Sambuc 449*ebfedea0SLionel Sambuc2006-12-05 Love Hörnquist Åstrand <lha@it.su.se> 450*ebfedea0SLionel Sambuc 451*ebfedea0SLionel Sambuc * Makefile.am: Add test_crypto.in to EXTRA_DIST. 452*ebfedea0SLionel Sambuc 453*ebfedea0SLionel Sambuc * test_crypto.in: Add more spaces to allow sh to parse this 454*ebfedea0SLionel Sambuc 455*ebfedea0SLionel Sambuc * test_rsa.c: Explain what the fixed "sha1" checksum test tries to 456*ebfedea0SLionel Sambuc test. 457*ebfedea0SLionel Sambuc 458*ebfedea0SLionel Sambuc * test_crypto.in: test rsa, dh and engine code 459*ebfedea0SLionel Sambuc 460*ebfedea0SLionel Sambuc2006-12-04 Love Hörnquist Åstrand <lha@it.su.se> 461*ebfedea0SLionel Sambuc 462*ebfedea0SLionel Sambuc * Makefile.am: rsa and crypto engine test cases 463*ebfedea0SLionel Sambuc 464*ebfedea0SLionel Sambuc * test_rsa.c: Make faster and less verbose 465*ebfedea0SLionel Sambuc 466*ebfedea0SLionel Sambuc * rsakey.der: test rsa key 467*ebfedea0SLionel Sambuc 468*ebfedea0SLionel Sambuc * test_rsa.c: Test rsa operations 469*ebfedea0SLionel Sambuc 470*ebfedea0SLionel Sambuc * rsa-imath.c: Fix the rsa-decrypt failed case that been hauting 471*ebfedea0SLionel Sambuc me for a while. 472*ebfedea0SLionel Sambuc 473*ebfedea0SLionel Sambuc2006-12-02 Love Hörnquist Åstrand <lha@it.su.se> 474*ebfedea0SLionel Sambuc 475*ebfedea0SLionel Sambuc * rsa-imath.c: Use mp_int_to_binary to encode bignums 476*ebfedea0SLionel Sambuc 477*ebfedea0SLionel Sambuc * rsa-imath.c: Check if header is there 478*ebfedea0SLionel Sambuc 479*ebfedea0SLionel Sambuc2006-11-27 Love Hörnquist Åstrand <lha@it.su.se> 480*ebfedea0SLionel Sambuc 481*ebfedea0SLionel Sambuc * rsa-imath.c: Return -1 for failure. 482*ebfedea0SLionel Sambuc 483*ebfedea0SLionel Sambuc * rsa-imath.c: Its ok with smaller signatures. 484*ebfedea0SLionel Sambuc 485*ebfedea0SLionel Sambuc * rsa-imath.c: Split error codes for now 486*ebfedea0SLionel Sambuc 487*ebfedea0SLionel Sambuc2006-10-22 Love Hörnquist Åstrand <lha@it.su.se> 488*ebfedea0SLionel Sambuc 489*ebfedea0SLionel Sambuc * rsa.c: Try to not leak memory. 490*ebfedea0SLionel Sambuc 491*ebfedea0SLionel Sambuc2006-10-21 Love Hörnquist Åstrand <lha@it.su.se> 492*ebfedea0SLionel Sambuc 493*ebfedea0SLionel Sambuc * rand-unix.c (unix_bytes): read until the other side give us all 494*ebfedea0SLionel Sambuc or fail. 495*ebfedea0SLionel Sambuc 496*ebfedea0SLionel Sambuc * imath: import imath-1.7, fixes buffer overrun problems 497*ebfedea0SLionel Sambuc 498*ebfedea0SLionel Sambuc * rsa.c (RSA_free): free the whole key 499*ebfedea0SLionel Sambuc 500*ebfedea0SLionel Sambuc * test_engine_dso.c: Add more dh tests. 501*ebfedea0SLionel Sambuc 502*ebfedea0SLionel Sambuc2006-10-20 Love Hörnquist Åstrand <lha@it.su.se> 503*ebfedea0SLionel Sambuc 504*ebfedea0SLionel Sambuc * imath/imath.c: Allocate more bits. 505*ebfedea0SLionel Sambuc 506*ebfedea0SLionel Sambuc * dh-imath.c (dh_compute_key): fix signness test 507*ebfedea0SLionel Sambuc 508*ebfedea0SLionel Sambuc * dh-imath.c: Try harder to generate a good keypair. 509*ebfedea0SLionel Sambuc 510*ebfedea0SLionel Sambuc * dh-imath.c: Return -1 dh_compute_key on failure, pointed out by 511*ebfedea0SLionel Sambuc Olga Kornievskaia. 512*ebfedea0SLionel Sambuc 513*ebfedea0SLionel Sambuc2006-10-19 Love Hörnquist Åstrand <lha@it.su.se> 514*ebfedea0SLionel Sambuc 515*ebfedea0SLionel Sambuc * Makefile.am: Add hash.h and des-tables.h. 516*ebfedea0SLionel Sambuc 517*ebfedea0SLionel Sambuc * dh.c (DH_compute_key): return -1 on bad public key. 518*ebfedea0SLionel Sambuc 519*ebfedea0SLionel Sambuc * rsa.c: remove stray ; 520*ebfedea0SLionel Sambuc 521*ebfedea0SLionel Sambuc * engine.c: Does function typecasts instead of void * type-casts. 522*ebfedea0SLionel Sambuc 523*ebfedea0SLionel Sambuc * evp.c: Does function typecasts instead of void * type-casts. 524*ebfedea0SLionel Sambuc 525*ebfedea0SLionel Sambuc2006-10-16 Love Hörnquist Åstrand <lha@it.su.se> 526*ebfedea0SLionel Sambuc 527*ebfedea0SLionel Sambuc * Makefile.am: add rand-unix.c 528*ebfedea0SLionel Sambuc 529*ebfedea0SLionel Sambuc * rand.c: Move out rand-unix functions from the core lib. 530*ebfedea0SLionel Sambuc 531*ebfedea0SLionel Sambuc * rand-unix.c: Move out rand-unix functions from the core lib. 532*ebfedea0SLionel Sambuc 533*ebfedea0SLionel Sambuc2006-10-15 Love Hörnquist Åstrand <lha@it.su.se> 534*ebfedea0SLionel Sambuc 535*ebfedea0SLionel Sambuc * hmac.c (HMAC_CTX_cleanup): destroy the EVP_MD_CTX, so it will be 536*ebfedea0SLionel Sambuc freed. 537*ebfedea0SLionel Sambuc 538*ebfedea0SLionel Sambuc2006-10-14 Love Hörnquist Åstrand <lha@it.su.se> 539*ebfedea0SLionel Sambuc 540*ebfedea0SLionel Sambuc * bn.c: Drop heim_any.h, prefix der primitives with der_ 541*ebfedea0SLionel Sambuc 542*ebfedea0SLionel Sambuc * rsa.c: Drop heim_any.h. 543*ebfedea0SLionel Sambuc 544*ebfedea0SLionel Sambuc2006-10-11 Love Hörnquist Åstrand <lha@it.su.se> 545*ebfedea0SLionel Sambuc 546*ebfedea0SLionel Sambuc * rsa.c (RSA_free): Call the meth->finish before releasing the 547*ebfedea0SLionel Sambuc engine. 548*ebfedea0SLionel Sambuc 549*ebfedea0SLionel Sambuc2006-10-06 Love Hörnquist Åstrand <lha@it.su.se> 550*ebfedea0SLionel Sambuc 551*ebfedea0SLionel Sambuc * imath/imath.c: Cast argument to ctype(3) functions to (unsigned 552*ebfedea0SLionel Sambuc char). 553*ebfedea0SLionel Sambuc 554*ebfedea0SLionel Sambuc * imath/imrat.c: Cast argument to ctype(3) functions to (unsigned 555*ebfedea0SLionel Sambuc char). 556*ebfedea0SLionel Sambuc 557*ebfedea0SLionel Sambuc2006-09-22 Love Hörnquist Åstrand <lha@it.su.se> 558*ebfedea0SLionel Sambuc 559*ebfedea0SLionel Sambuc * ui.c (read_string): Try to not call signaction for signal 0 and 560*ebfedea0SLionel Sambuc use NSIG if it exists to determin how many signals there exists, 561*ebfedea0SLionel Sambuc also, only restore those signalhandlers that we got out. 562*ebfedea0SLionel Sambuc 563*ebfedea0SLionel Sambuc Bug reported by and patch tested by Harald Barth. 564*ebfedea0SLionel Sambuc 565*ebfedea0SLionel Sambuc2006-09-15 Love Hörnquist Åstrand <lha@it.su.se> 566*ebfedea0SLionel Sambuc 567*ebfedea0SLionel Sambuc * rsa-imath.c: Add commeted out test that exponent is > 3 568*ebfedea0SLionel Sambuc 569*ebfedea0SLionel Sambuc2006-05-13 Love Hörnquist Åstrand <lha@it.su.se> 570*ebfedea0SLionel Sambuc 571*ebfedea0SLionel Sambuc * bn.c (BN_rand): avoid shadowing. 572*ebfedea0SLionel Sambuc 573*ebfedea0SLionel Sambuc2006-05-12 Love Hörnquist Åstrand <lha@it.su.se> 574*ebfedea0SLionel Sambuc 575*ebfedea0SLionel Sambuc * rsa-imath.c: Fix the last one of the asserts. 576*ebfedea0SLionel Sambuc 577*ebfedea0SLionel Sambuc2006-05-08 Love Hörnquist Åstrand <lha@it.su.se> 578*ebfedea0SLionel Sambuc 579*ebfedea0SLionel Sambuc * rand.c (get_device_fd): use /dev/urandom first. 580*ebfedea0SLionel Sambuc 581*ebfedea0SLionel Sambuc * rctest.c: Less "pointer targets in passing argument differ in 582*ebfedea0SLionel Sambuc signedness" warnings. 583*ebfedea0SLionel Sambuc 584*ebfedea0SLionel Sambuc * rc2test.c: Less "pointer targets in passing argument differ in 585*ebfedea0SLionel Sambuc signedness" warnings. 586*ebfedea0SLionel Sambuc 587*ebfedea0SLionel Sambuc2006-05-07 Love Hörnquist Åstrand <lha@it.su.se> 588*ebfedea0SLionel Sambuc 589*ebfedea0SLionel Sambuc * rsa-imath.c: Fix a off by one. 590*ebfedea0SLionel Sambuc 591*ebfedea0SLionel Sambuc * test_engine_dso.c: print the lengths when they don't match. 592*ebfedea0SLionel Sambuc 593*ebfedea0SLionel Sambuc * engine.c (ENGINE_load_builtin_engines): use RSA_imath_method for 594*ebfedea0SLionel Sambuc the building engine. 595*ebfedea0SLionel Sambuc 596*ebfedea0SLionel Sambuc * rsa.h: expose RSA_imath_method 597*ebfedea0SLionel Sambuc 598*ebfedea0SLionel Sambuc * rsa.c (RSA_check_key): Do sign/verify instead. 599*ebfedea0SLionel Sambuc 600*ebfedea0SLionel Sambuc * dsa.c: rename the DSA_METHOD 601*ebfedea0SLionel Sambuc 602*ebfedea0SLionel Sambuc * dh.c: rename the DH_METHOD 603*ebfedea0SLionel Sambuc 604*ebfedea0SLionel Sambuc * dh-imath.c: rename the DH_METHOD 605*ebfedea0SLionel Sambuc 606*ebfedea0SLionel Sambuc * rsa.c: Default to use rsa-imath. 607*ebfedea0SLionel Sambuc 608*ebfedea0SLionel Sambuc * Makefile.am: Add rsa-imath.c to libhcrypto 609*ebfedea0SLionel Sambuc 610*ebfedea0SLionel Sambuc * rsa-imath.c: Add RSA support using imath. 611*ebfedea0SLionel Sambuc 612*ebfedea0SLionel Sambuc2006-05-06 Love Hörnquist Åstrand <lha@it.su.se> 613*ebfedea0SLionel Sambuc 614*ebfedea0SLionel Sambuc * imath: Add imath-1.1.9 615*ebfedea0SLionel Sambuc 616*ebfedea0SLionel Sambuc * dh.h: Expose DH_imath_method. 617*ebfedea0SLionel Sambuc 618*ebfedea0SLionel Sambuc * Makefile.am: Add imath source, add test_engine_dso to TESTS. 619*ebfedea0SLionel Sambuc 620*ebfedea0SLionel Sambuc * engine.c: Lets say we have RSA_null_method(), not really 621*ebfedea0SLionel Sambuc useable, but still. 622*ebfedea0SLionel Sambuc 623*ebfedea0SLionel Sambuc * test_engine_dso.c: If there are no arguments, use the internal 624*ebfedea0SLionel Sambuc engine. 625*ebfedea0SLionel Sambuc 626*ebfedea0SLionel Sambuc * engine.h: Cpp rename some ENGINE symbols. 627*ebfedea0SLionel Sambuc 628*ebfedea0SLionel Sambuc * engine.c (ENGINE_load_builtin_engines): Load the internal 629*ebfedea0SLionel Sambuc engine. 630*ebfedea0SLionel Sambuc 631*ebfedea0SLionel Sambuc * dh.c: Default to use DH-imath. 632*ebfedea0SLionel Sambuc 633*ebfedea0SLionel Sambuc * dh.c (DH_check_pubkey): describe what the function do 634*ebfedea0SLionel Sambuc 635*ebfedea0SLionel Sambuc2006-05-05 Love Hörnquist Åstrand <lha@it.su.se> 636*ebfedea0SLionel Sambuc 637*ebfedea0SLionel Sambuc * dh.c (DH_compute_key): check return status value from 638*ebfedea0SLionel Sambuc DH_check_pubkey 639*ebfedea0SLionel Sambuc 640*ebfedea0SLionel Sambuc * Rename u_intXX_t to uintXX_t 641*ebfedea0SLionel Sambuc 642*ebfedea0SLionel Sambuc2006-04-24 Love Hörnquist Åstrand <lha@it.su.se> 643*ebfedea0SLionel Sambuc 644*ebfedea0SLionel Sambuc * pkcs5.c: include <krb5-types.h> 645*ebfedea0SLionel Sambuc 646*ebfedea0SLionel Sambuc * evp.c: Sprinkel some assertions. 647*ebfedea0SLionel Sambuc 648*ebfedea0SLionel Sambuc * des.c: Move assertion and add another restriction, used as hint 649*ebfedea0SLionel Sambuc to beam that its ok 650*ebfedea0SLionel Sambuc 651*ebfedea0SLionel Sambuc2006-04-23 Love Hörnquist Åstrand <lha@it.su.se> 652*ebfedea0SLionel Sambuc 653*ebfedea0SLionel Sambuc * rsa.c (RSA_check_key): don't do any checking if there is no 654*ebfedea0SLionel Sambuc private key 655*ebfedea0SLionel Sambuc 656*ebfedea0SLionel Sambuc * engine.c (add_engine): reassign engines variable after realloc 657*ebfedea0SLionel Sambuc 658*ebfedea0SLionel Sambuc2006-04-21 Love Hörnquist Åstrand <lha@it.su.se> 659*ebfedea0SLionel Sambuc 660*ebfedea0SLionel Sambuc * evp.h: Add EVP_get_cipherbyname, unbreak EVP_BytesToKey 661*ebfedea0SLionel Sambuc 662*ebfedea0SLionel Sambuc * evp.h: Add prototype for EVP_BytesToKey 663*ebfedea0SLionel Sambuc 664*ebfedea0SLionel Sambuc * evp.c: Add stub for EVP_BytesToKey 665*ebfedea0SLionel Sambuc 666*ebfedea0SLionel Sambuc2006-04-20 Love Hörnquist Åstrand <lha@it.su.se> 667*ebfedea0SLionel Sambuc 668*ebfedea0SLionel Sambuc * dh.h: Add cpp-rename for DH_check_pubkey 669*ebfedea0SLionel Sambuc 670*ebfedea0SLionel Sambuc2006-04-17 Love Hörnquist Åstrand <lha@it.su.se> 671*ebfedea0SLionel Sambuc 672*ebfedea0SLionel Sambuc * rand.h: Add more RAND functions. 673*ebfedea0SLionel Sambuc 674*ebfedea0SLionel Sambuc * rand.c: Split out unix /dev/random to a RAND_METHOD 675*ebfedea0SLionel Sambuc 676*ebfedea0SLionel Sambuc * engine.h: add RAND support 677*ebfedea0SLionel Sambuc 678*ebfedea0SLionel Sambuc * engine.c: add RAND support 679*ebfedea0SLionel Sambuc 680*ebfedea0SLionel Sambuc * evp.h: s/rc4_64/rc2_64/ 681*ebfedea0SLionel Sambuc 682*ebfedea0SLionel Sambuc * rand.c: Add RAND_METHOD and some associated functions. 683*ebfedea0SLionel Sambuc 684*ebfedea0SLionel Sambuc * rand.h: Add RAND_METHOD and some associated functions. 685*ebfedea0SLionel Sambuc 686*ebfedea0SLionel Sambuc * test_bn.c: Test BN_rand 687*ebfedea0SLionel Sambuc 688*ebfedea0SLionel Sambuc2006-04-16 Love Hörnquist Åstrand <lha@it.su.se> 689*ebfedea0SLionel Sambuc 690*ebfedea0SLionel Sambuc * engine.c (ENGINE_by_dso): less printf 691*ebfedea0SLionel Sambuc 692*ebfedea0SLionel Sambuc * rsa.h (i2d_RSAPublicKey): fix prototype 693*ebfedea0SLionel Sambuc 694*ebfedea0SLionel Sambuc * rsa.c (i2d_RSAPublicKey): fix prototype 695*ebfedea0SLionel Sambuc 696*ebfedea0SLionel Sambuc2006-04-15 Love Hörnquist Åstrand <lha@it.su.se> 697*ebfedea0SLionel Sambuc 698*ebfedea0SLionel Sambuc * evp.h: Add EVP_rc2_64_cbc 699*ebfedea0SLionel Sambuc 700*ebfedea0SLionel Sambuc * evp.c: Add EVP_rc2_64_cbc 701*ebfedea0SLionel Sambuc 702*ebfedea0SLionel Sambuc * evp.h: Add SHA-256 symbols. 703*ebfedea0SLionel Sambuc 704*ebfedea0SLionel Sambuc * evp.c: Add SHA-256. 705*ebfedea0SLionel Sambuc 706*ebfedea0SLionel Sambuc * sha.h: Add SHA-256 symbols. 707*ebfedea0SLionel Sambuc 708*ebfedea0SLionel Sambuc * mdtest.c: Test SHA-256. 709*ebfedea0SLionel Sambuc 710*ebfedea0SLionel Sambuc * sha256.c: Inital (naive) SHA-256 implementation. 711*ebfedea0SLionel Sambuc 712*ebfedea0SLionel Sambuc2006-04-14 Love Hörnquist Åstrand <lha@it.su.se> 713*ebfedea0SLionel Sambuc 714*ebfedea0SLionel Sambuc * des.c (DES_cfb64_encrypt): add asserts that the *num pointers is 715*ebfedea0SLionel Sambuc >= 0, because if it is, its a programmer error. 716*ebfedea0SLionel Sambuc 717*ebfedea0SLionel Sambuc2006-04-09 Love Hörnquist Åstrand <lha@it.su.se> 718*ebfedea0SLionel Sambuc 719*ebfedea0SLionel Sambuc * rc2.c (RC2_set_key): abort on erroneous input (len <= 0) size 720*ebfedea0SLionel Sambuc that will case out out bound indexing, and its invalid input. 721*ebfedea0SLionel Sambuc 722*ebfedea0SLionel Sambuc * rsa.c: Make compile again. 723*ebfedea0SLionel Sambuc 724*ebfedea0SLionel Sambuc2006-04-03 Love Hörnquist Åstrand <lha@it.su.se> 725*ebfedea0SLionel Sambuc 726*ebfedea0SLionel Sambuc * rsa.c: Implement i2d_RSAPublicKey 727*ebfedea0SLionel Sambuc 728*ebfedea0SLionel Sambuc * rsa.h: Add i2d_RSAPublicKey 729*ebfedea0SLionel Sambuc 730*ebfedea0SLionel Sambuc2006-03-07 Love Hörnquist Åstrand <lha@it.su.se> 731*ebfedea0SLionel Sambuc 732*ebfedea0SLionel Sambuc * Makefile.am: EVP interface depends on dlopen, add it to LIBFLAGS 733*ebfedea0SLionel Sambuc 734*ebfedea0SLionel Sambuc2006-02-28 Love Hörnquist Åstrand <lha@it.su.se> 735*ebfedea0SLionel Sambuc 736*ebfedea0SLionel Sambuc * Makefile.am: Add pkcs5 files. 737*ebfedea0SLionel Sambuc 738*ebfedea0SLionel Sambuc * test_pkcs5.c: Testcases for pkcs5 pbe2. 739*ebfedea0SLionel Sambuc 740*ebfedea0SLionel Sambuc * pkcs5.c (PKCS5_PBKDF2_HMAC_SHA1): new function. 741*ebfedea0SLionel Sambuc 742*ebfedea0SLionel Sambuc * hmac.c: Digest key when it exceeds block size, not when it 743*ebfedea0SLionel Sambuc exceeds the size of the output block. 744*ebfedea0SLionel Sambuc 745*ebfedea0SLionel Sambuc2006-02-16 Love Hörnquist Åstrand <lha@it.su.se> 746*ebfedea0SLionel Sambuc 747*ebfedea0SLionel Sambuc * rand.c (RAND_bytes): Don't abort() on failure, return error. 748*ebfedea0SLionel Sambuc 749*ebfedea0SLionel Sambuc * bn.c (BN_rand): check return value from RAND_bytes 750*ebfedea0SLionel Sambuc 751*ebfedea0SLionel Sambuc2006-01-18 Love Hörnquist Åstrand <lha@it.su.se> 752*ebfedea0SLionel Sambuc 753*ebfedea0SLionel Sambuc * dh.c (DH_compute_key): check public key 754*ebfedea0SLionel Sambuc 755*ebfedea0SLionel Sambuc * dh.h: Add DH_check_pubkey and defines it uses. 756*ebfedea0SLionel Sambuc 757*ebfedea0SLionel Sambuc * dh.c (DH_check_pubkey): New function. 758*ebfedea0SLionel Sambuc 759*ebfedea0SLionel Sambuc * bn.c: Remove unused fragment. 760*ebfedea0SLionel Sambuc 761*ebfedea0SLionel Sambuc * test_bn.c: Compare numbers with BN_cmp(). 762*ebfedea0SLionel Sambuc 763*ebfedea0SLionel Sambuc2006-01-17 David Love <fx@gnu.org> 764*ebfedea0SLionel Sambuc 765*ebfedea0SLionel Sambuc * bn.c: Include <limits.h>. 766*ebfedea0SLionel Sambuc 767*ebfedea0SLionel Sambuc2006-01-13 Love Hörnquist Åstrand <lha@it.su.se> 768*ebfedea0SLionel Sambuc 769*ebfedea0SLionel Sambuc * *.h: use #include <hcrypto/...> 770*ebfedea0SLionel Sambuc 771*ebfedea0SLionel Sambuc * Makefile.am: provide a symlink so the directory hcrypto/ seems 772*ebfedea0SLionel Sambuc to exists 773*ebfedea0SLionel Sambuc 774*ebfedea0SLionel Sambuc * engine.h: Expose dsa symbols 775*ebfedea0SLionel Sambuc 776*ebfedea0SLionel Sambuc * Makefile.am: Rename library to hcrypto and install headerfiles 777*ebfedea0SLionel Sambuc in hcrypto/. 778*ebfedea0SLionel Sambuc 779*ebfedea0SLionel Sambuc * test_pkcs12.c: Test for PKCS12_key_gen. 780*ebfedea0SLionel Sambuc 781*ebfedea0SLionel Sambuc * hmac.h: Drop HMAC_CTX_create and HMAC_CTX_destroy. 782*ebfedea0SLionel Sambuc 783*ebfedea0SLionel Sambuc * engine.c (ENGINE_add_conf_module): Also load DH 784*ebfedea0SLionel Sambuc 785*ebfedea0SLionel Sambuc * dh.h: Reorder includes to avoid compile errors, provide 786*ebfedea0SLionel Sambuc DH_new_method(). 787*ebfedea0SLionel Sambuc 788*ebfedea0SLionel Sambuc * dh.c: Indent. 789*ebfedea0SLionel Sambuc 790*ebfedea0SLionel Sambuc * bn.c: BN_get_negative was really named BN_is_negative, a comment 791*ebfedea0SLionel Sambuc confused me. 792*ebfedea0SLionel Sambuc 793*ebfedea0SLionel Sambuc * bn.h: BN_get_negative was really named BN_is_negative, a comment 794*ebfedea0SLionel Sambuc confused me. 795*ebfedea0SLionel Sambuc 796*ebfedea0SLionel Sambuc * pkcs12.h: Add PKCS12_key_gen(). 797*ebfedea0SLionel Sambuc 798*ebfedea0SLionel Sambuc * pkcs12.c: Add PKCS12_key_gen(). 799*ebfedea0SLionel Sambuc 800*ebfedea0SLionel Sambuc * Makefile.am: Add test_cipher, test_pkcs12, add pkcs12.[ch]. 801*ebfedea0SLionel Sambuc 802*ebfedea0SLionel Sambuc * evp.c: Rename rc2_40_cbc internal variable to something better. 803*ebfedea0SLionel Sambuc Unbreak des-ede3-cbc. 804*ebfedea0SLionel Sambuc 805*ebfedea0SLionel Sambuc2006-01-11 Love Hörnquist Åstrand <lha@it.su.se> 806*ebfedea0SLionel Sambuc 807*ebfedea0SLionel Sambuc * test_bn.c: Test BN_uadd. 808*ebfedea0SLionel Sambuc 809*ebfedea0SLionel Sambuc * bn.c (BN_rand): don't leak memory on failure, catch malloc(0) 810*ebfedea0SLionel Sambuc case 811*ebfedea0SLionel Sambuc 812*ebfedea0SLionel Sambuc * bn.c (BN_rand): clear the bits above the bits that user 813*ebfedea0SLionel Sambuc requested. 814*ebfedea0SLionel Sambuc (BN_uadd): new function. 815*ebfedea0SLionel Sambuc 816*ebfedea0SLionel Sambuc * bn.h (BN_uadd): new function. 817*ebfedea0SLionel Sambuc 818*ebfedea0SLionel Sambuc2006-01-10 Love Hörnquist Åstrand <lha@it.su.se> 819*ebfedea0SLionel Sambuc 820*ebfedea0SLionel Sambuc * evp.c (EVP_CIPHER_CTX_cleanup): clean up less aggressively 821*ebfedea0SLionel Sambuc 822*ebfedea0SLionel Sambuc * Makefile.am (check_PROGRAMS): add test_hmac 823*ebfedea0SLionel Sambuc 824*ebfedea0SLionel Sambuc * test_hmac.c: Simple regression test for HMAC. 825*ebfedea0SLionel Sambuc 826*ebfedea0SLionel Sambuc * hmac.c: Make hmac work. 827*ebfedea0SLionel Sambuc 828*ebfedea0SLionel Sambuc * evp.c: return the right blocksize for digests. 829*ebfedea0SLionel Sambuc 830*ebfedea0SLionel Sambuc2006-01-09 Love Hörnquist Åstrand <lha@it.su.se> 831*ebfedea0SLionel Sambuc 832*ebfedea0SLionel Sambuc * test_engine_dso.c: Add test for DH. 833*ebfedea0SLionel Sambuc 834*ebfedea0SLionel Sambuc * dh.c: Add DH_new_method, add ENGINE refcounting. 835*ebfedea0SLionel Sambuc 836*ebfedea0SLionel Sambuc * engine.[ch]: Add ENGINE_set_default_DH and ENGINE_get_default_DH 837*ebfedea0SLionel Sambuc 838*ebfedea0SLionel Sambuc * test_engine_dso.c: Add test for RSA encryption. 839*ebfedea0SLionel Sambuc 840*ebfedea0SLionel Sambuc2006-01-08 Love Hörnquist Åstrand <lha@it.su.se> 841*ebfedea0SLionel Sambuc 842*ebfedea0SLionel Sambuc * test_engine_dso.c: Add test for RSA. 843*ebfedea0SLionel Sambuc 844*ebfedea0SLionel Sambuc * implement enough glue to support OpenSSLs EVP, RSA, DSA, DH, 845*ebfedea0SLionel Sambuc HMAC, RAND and ENGINE interfaces for use in hx509. rename all 846*ebfedea0SLionel Sambuc symbols to start with hc_ to avoid clobbering namespaces. contains 847*ebfedea0SLionel Sambuc no RSA/DH/DSA code, just glue to support using dynamic 848*ebfedea0SLionel Sambuc ENGINE. hx509 supports this via pkcs11 and there is a gmp ENGINE 849*ebfedea0SLionel Sambuc module supporting RSA. Also contains a MD2 digest for completion. 850*ebfedea0SLionel Sambuc 851*ebfedea0SLionel Sambuc2005-07-20 Love Hörnquist Åstrand <lha@it.su.se> 852*ebfedea0SLionel Sambuc 853*ebfedea0SLionel Sambuc * des.c,des.h,rnd_keys.c: change unsigned char * to void * 854*ebfedea0SLionel Sambuc 855*ebfedea0SLionel Sambuc2005-06-30 Love Hörnquist Åstrand <lha@it.su.se> 856*ebfedea0SLionel Sambuc 857*ebfedea0SLionel Sambuc * rnd_keys.c: const poision for unwriteable strings 858*ebfedea0SLionel Sambuc 859*ebfedea0SLionel Sambuc2005-06-19 Love Hörnquist Åstrand <lha@it.su.se> 860*ebfedea0SLionel Sambuc 861*ebfedea0SLionel Sambuc * des.c,aes.c,rc2.c: Rename parameter, as encrypt shadows a 862*ebfedea0SLionel Sambuc global, from Andrew Bartlett 863*ebfedea0SLionel Sambuc 864*ebfedea0SLionel Sambuc2005-06-02 Love Hörnquist Åstrand <lha@it.su.se> 865*ebfedea0SLionel Sambuc 866*ebfedea0SLionel Sambuc * rnd_keys.c: Include <stdlib.h> for srandom/random. 867*ebfedea0SLionel Sambuc 868*ebfedea0SLionel Sambuc2005-05-29 Love Hörnquist Åstrand <lha@it.su.se> 869*ebfedea0SLionel Sambuc 870*ebfedea0SLionel Sambuc * des.c (DES_cbc_cksum): init u to make sure it have a value in 871*ebfedea0SLionel Sambuc case of the empty in data 872*ebfedea0SLionel Sambuc 873*ebfedea0SLionel Sambuc * destest.c: add test for the empty password "" 874*ebfedea0SLionel Sambuc 875*ebfedea0SLionel Sambuc2005-05-27 Love Hörnquist Åstrand <lha@it.su.se> 876*ebfedea0SLionel Sambuc 877*ebfedea0SLionel Sambuc * rctest.c (cipher3): used unsigned char to avoid problems with 878*ebfedea0SLionel Sambuc platforms using "signed char" 879*ebfedea0SLionel Sambuc 880*ebfedea0SLionel Sambuc2005-05-13 Love Hörnquist Åstrand <lha@it.su.se> 881*ebfedea0SLionel Sambuc 882*ebfedea0SLionel Sambuc * rc2.c: use unsigned char to avoid signess warning 883*ebfedea0SLionel Sambuc 884*ebfedea0SLionel Sambuc * des.c: use unsigned char to avoid signess warning 885*ebfedea0SLionel Sambuc 886*ebfedea0SLionel Sambuc * aes.c (AES_cbc_encrypt): use unsigned char to avoid signess 887*ebfedea0SLionel Sambuc warning 888*ebfedea0SLionel Sambuc 889*ebfedea0SLionel Sambuc2005-05-03 Dave Love <fx@gnu.org> 890*ebfedea0SLionel Sambuc 891*ebfedea0SLionel Sambuc * mdtest.c: Fix typo for HAVE_STDLIB_H. 892*ebfedea0SLionel Sambuc 893*ebfedea0SLionel Sambuc2005-05-03 Love Hörnquist Åstrand <lha@it.su.se> 894*ebfedea0SLionel Sambuc 895*ebfedea0SLionel Sambuc * rnd_keys.c: Enabled to build on cygwin, based on patch from 896*ebfedea0SLionel Sambuc David Love <fx@gnu.org> 897*ebfedea0SLionel Sambuc 898*ebfedea0SLionel Sambuc2005-05-02 Dave Love <fx@gnu.org> 899*ebfedea0SLionel Sambuc 900*ebfedea0SLionel Sambuc * mdtest.c: Include <krb5-types.h>. 901*ebfedea0SLionel Sambuc 902*ebfedea0SLionel Sambuc2005-04-30 Love Hörnquist Åstrand <lha@it.su.se> 903*ebfedea0SLionel Sambuc 904*ebfedea0SLionel Sambuc * ui.c: Include <des.h>. 905*ebfedea0SLionel Sambuc (UI_UTIL_read_pw_string): make the prompt argument const. 906*ebfedea0SLionel Sambuc 907*ebfedea0SLionel Sambuc * des.h (UI_UTIL_read_pw_string): make the prompt argument const 908*ebfedea0SLionel Sambuc 909*ebfedea0SLionel Sambuc * ui.c (UI_UTIL_read_pw_string): remove unused variable plen 910*ebfedea0SLionel Sambuc 911*ebfedea0SLionel Sambuc * des.c: replace <strings.h> with <string.h> 912*ebfedea0SLionel Sambuc 913*ebfedea0SLionel Sambuc2005-04-29 Dave Love <fx@gnu.org> 914*ebfedea0SLionel Sambuc 915*ebfedea0SLionel Sambuc * Makefile.am: Add LIB_roken. 916*ebfedea0SLionel Sambuc 917*ebfedea0SLionel Sambuc2005-04-27 Dave Love <fx@gnu.org> 918*ebfedea0SLionel Sambuc 919*ebfedea0SLionel Sambuc * sha.c: Include hash.h first. 920*ebfedea0SLionel Sambuc 921*ebfedea0SLionel Sambuc * md4.c: Include hash.h first. 922*ebfedea0SLionel Sambuc 923*ebfedea0SLionel Sambuc * md5.c: Include hash.h first. 924*ebfedea0SLionel Sambuc 925*ebfedea0SLionel Sambuc * hash.h: Include krb5-types.h 926*ebfedea0SLionel Sambuc 927*ebfedea0SLionel Sambuc2005-04-26 Dave Love <fx@gnu.org> 928*ebfedea0SLionel Sambuc 929*ebfedea0SLionel Sambuc * mdtest.c: Maybe include stdlib.h 930*ebfedea0SLionel Sambuc 931*ebfedea0SLionel Sambuc2005-04-10 Love Hörnquist Åstrand <lha@it.su.se> 932*ebfedea0SLionel Sambuc 933*ebfedea0SLionel Sambuc * sha.h,md5.h, md4.h: don't include bit types, the user must do 934*ebfedea0SLionel Sambuc that #ifdef wrap 935*ebfedea0SLionel Sambuc 936*ebfedea0SLionel Sambuc * aes.h: #ifdef wrap 937*ebfedea0SLionel Sambuc 938*ebfedea0SLionel Sambuc2005-03-23 Love Hörnquist Åstrand <lha@it.su.se> 939*ebfedea0SLionel Sambuc 940*ebfedea0SLionel Sambuc * des.h: fix prototype for DES_random_key 941*ebfedea0SLionel Sambuc 942*ebfedea0SLionel Sambuc * rnd_keys.c: fix prototype for DES_random_key 943*ebfedea0SLionel Sambuc 944*ebfedea0SLionel Sambuc * des.[ch]: provide compatibility function DES_key_sched, same as 945*ebfedea0SLionel Sambuc DES_set_key 946*ebfedea0SLionel Sambuc 947*ebfedea0SLionel Sambuc2005-03-20 Love Hörnquist Åstrand <lha@it.su.se> 948*ebfedea0SLionel Sambuc 949*ebfedea0SLionel Sambuc * destest.c: include config.h and protect some headers 950*ebfedea0SLionel Sambuc 951*ebfedea0SLionel Sambuc * rnd_keys.c: move <des.h> to after include <krb5-types.h> so the 952*ebfedea0SLionel Sambuc C99 integer types exists 953*ebfedea0SLionel Sambuc 954*ebfedea0SLionel Sambuc2005-03-14 Love Hörnquist Åstrand <lha@it.su.se> 955*ebfedea0SLionel Sambuc 956*ebfedea0SLionel Sambuc * des.c: add DES_set_key_checked 957*ebfedea0SLionel Sambuc 958*ebfedea0SLionel Sambuc * des.h: add DES_set_key_checked 959*ebfedea0SLionel Sambuc 960*ebfedea0SLionel Sambuc2005-03-01 Love Hörnquist Åstrand <lha@it.su.se> 961*ebfedea0SLionel Sambuc 962*ebfedea0SLionel Sambuc * des-tables.h: Add the missing file 963*ebfedea0SLionel Sambuc 964*ebfedea0SLionel Sambuc2005-02-23 Love Hörnquist Åstrand <lha@it.su.se> 965*ebfedea0SLionel Sambuc 966*ebfedea0SLionel Sambuc * ui.c: remove dependency on asprintf 967*ebfedea0SLionel Sambuc 968*ebfedea0SLionel Sambuc * Makefile.am: make destest only once 969*ebfedea0SLionel Sambuc 970*ebfedea0SLionel Sambuc * Replace the eay DES code with key scheule setup code by me and DES 971*ebfedea0SLionel Sambuc s-box and p permutation from Richard Outerbridge implemtation (in 972*ebfedea0SLionel Sambuc public domain). The DES modes are implemented by me. ui.c code are 973*ebfedea0SLionel Sambuc from appl/login. 974*ebfedea0SLionel Sambuc 975*ebfedea0SLionel Sambuc The implementation is about 3 times slower then Eric for encryption, 976*ebfedea0SLionel Sambuc and about the same speed for key setup. 977*ebfedea0SLionel Sambuc 978*ebfedea0SLionel Sambuc 979*ebfedea0SLionel Sambuc2004-08-10 Love Hörnquist Åstrand <lha@it.su.se> 980*ebfedea0SLionel Sambuc 981*ebfedea0SLionel Sambuc * rnd_keys.c (DES_rand_data): also try /dev/arandom 982*ebfedea0SLionel Sambuc 983*ebfedea0SLionel Sambuc2004-06-02 Love Hörnquist Åstrand <lha@it.su.se> 984*ebfedea0SLionel Sambuc 985*ebfedea0SLionel Sambuc * rnd_keys.c: don't include krb4 headers 986*ebfedea0SLionel Sambuc 987*ebfedea0SLionel Sambuc * rijndael-alg-fst.c: don't include krb4 headers 988*ebfedea0SLionel Sambuc 989*ebfedea0SLionel Sambuc * aes.c: don't include krb4 headers 990*ebfedea0SLionel Sambuc 991*ebfedea0SLionel Sambuc * aes.h: define AES_{EN,DE}CRYPT; remove #ifdefs, this is an 992*ebfedea0SLionel Sambuc installed file 993*ebfedea0SLionel Sambuc 994*ebfedea0SLionel Sambuc2004-04-25 Love Hörnquist Åstrand <lha@it.su.se> 995*ebfedea0SLionel Sambuc 996*ebfedea0SLionel Sambuc * rc2.c: handle non blocksized cbc messages 997*ebfedea0SLionel Sambuc 998*ebfedea0SLionel Sambuc * aes.[ch]: add AES_cbc_encrypt 999*ebfedea0SLionel Sambuc 1000*ebfedea0SLionel Sambuc2004-04-24 Love Hörnquist Åstrand <lha@it.su.se> 1001*ebfedea0SLionel Sambuc 1002*ebfedea0SLionel Sambuc * rc2test.c: test vectors from RFC2268 1003*ebfedea0SLionel Sambuc 1004*ebfedea0SLionel Sambuc * rc2.c (RC2_set_key): rewrite the mask calculation 1005*ebfedea0SLionel Sambuc 1006*ebfedea0SLionel Sambuc * rc2.c (RC2_set_key): handle keys where effective bits are 1007*ebfedea0SLionel Sambuc diffrent from keylength 1008*ebfedea0SLionel Sambuc 1009*ebfedea0SLionel Sambuc2004-04-23 Love Hörnquist Åstrand <lha@it.su.se> 1010*ebfedea0SLionel Sambuc 1011*ebfedea0SLionel Sambuc * rc2.c: rc2 implementation 1012*ebfedea0SLionel Sambuc 1013*ebfedea0SLionel Sambuc * rc2.h: rc2 implementation 1014*ebfedea0SLionel Sambuc 1015*ebfedea0SLionel Sambuc * rc2test.c: rc2 implementation 1016*ebfedea0SLionel Sambuc 1017*ebfedea0SLionel Sambuc * Makefile.am: rc2 implementation 1018*ebfedea0SLionel Sambuc 1019*ebfedea0SLionel Sambuc2004-03-25 Love Hörnquist Åstrand <lha@it.su.se> 1020*ebfedea0SLionel Sambuc 1021*ebfedea0SLionel Sambuc * Makefile.am: new arcfour implementation 1022*ebfedea0SLionel Sambuc 1023*ebfedea0SLionel Sambuc * rc4.c: implemented from description in 1024*ebfedea0SLionel Sambuc draft-kaukonen-cipher-arcfour-03.txt 1025*ebfedea0SLionel Sambuc 1026*ebfedea0SLionel Sambuc * rc4.h: replace with new implementation 1027*ebfedea0SLionel Sambuc 1028*ebfedea0SLionel Sambuc * rc4_enc.c rc4_skey.c: remove 1029*ebfedea0SLionel Sambuc 1030*ebfedea0SLionel Sambuc * rctest.c: test for arcfour 1031*ebfedea0SLionel Sambuc 1032*ebfedea0SLionel Sambuc2003-12-07 Love Hörnquist Åstrand <lha@it.su.se> 1033*ebfedea0SLionel Sambuc 1034*ebfedea0SLionel Sambuc * rnd_keys.c: uninitialized variable, from Panasas Inc 1035*ebfedea0SLionel Sambuc 1036*ebfedea0SLionel Sambuc2003-09-03 Love Hörnquist Åstrand <lha@it.su.se> 1037*ebfedea0SLionel Sambuc 1038*ebfedea0SLionel Sambuc * md4.c (MD4_Final): make the function threadsafe by removing 1039*ebfedea0SLionel Sambuc static on the local variable zeros 1040*ebfedea0SLionel Sambuc 1041*ebfedea0SLionel Sambuc * md5.c (MD5_Final): make the function threadsafe by removing 1042*ebfedea0SLionel Sambuc static on the local variable zeros 1043*ebfedea0SLionel Sambuc 1044*ebfedea0SLionel Sambuc * switch to the DES_ api, dont provide any compat glue 1045*ebfedea0SLionel Sambuc 1046*ebfedea0SLionel Sambuc2003-08-27 Love Hörnquist Åstrand <lha@it.su.se> 1047*ebfedea0SLionel Sambuc 1048*ebfedea0SLionel Sambuc * sha.c: make the function threadsafe by removing static on the 1049*ebfedea0SLionel Sambuc local variable zeros 1050*ebfedea0SLionel Sambuc 1051*ebfedea0SLionel Sambuc2003-07-23 Love Hörnquist Åstrand <lha@it.su.se> 1052*ebfedea0SLionel Sambuc 1053*ebfedea0SLionel Sambuc * rijndael-alg-fst.h,rijndael-alg-fst.c,aes.c,aes.h: 1054*ebfedea0SLionel Sambuc Makefile.am: add AES support 1055*ebfedea0SLionel Sambuc 1056*ebfedea0SLionel Sambuc2003-03-19 Love Hörnquist Åstrand <lha@it.su.se> 1057*ebfedea0SLionel Sambuc 1058*ebfedea0SLionel Sambuc * des.1: sunOS -> SunOS, from jmc <jmc@prioris.mini.pw.edu.pl> 1059*ebfedea0SLionel Sambuc 1060*ebfedea0SLionel Sambuc2003-03-19 Love Hörnquist Åstrand <lha@it.su.se> 1061*ebfedea0SLionel Sambuc 1062*ebfedea0SLionel Sambuc * des.1: spelling, from <jmc@prioris.mini.pw.edu.pl> 1063*ebfedea0SLionel Sambuc 1064*ebfedea0SLionel Sambuc2002-08-28 Johan Danielsson <joda@pdc.kth.se> 1065*ebfedea0SLionel Sambuc 1066*ebfedea0SLionel Sambuc * read_pwd.c: move NeXT SGTTY stuff here 1067*ebfedea0SLionel Sambuc 1068*ebfedea0SLionel Sambuc2001-05-17 Assar Westerlund <assar@sics.se> 1069*ebfedea0SLionel Sambuc 1070*ebfedea0SLionel Sambuc * Makefile.am: bump version to 3:1:0 1071*ebfedea0SLionel Sambuc 1072*ebfedea0SLionel Sambuc2001-05-11 Assar Westerlund <assar@sics.se> 1073*ebfedea0SLionel Sambuc 1074*ebfedea0SLionel Sambuc * str2key.c (des_string_to_key, des_string_to_2keys): avoid weak 1075*ebfedea0SLionel Sambuc keys 1076*ebfedea0SLionel Sambuc 1077*ebfedea0SLionel Sambuc2001-02-16 Assar Westerlund <assar@sics.se> 1078*ebfedea0SLionel Sambuc 1079*ebfedea0SLionel Sambuc * set_key.c: correct weak keys and update comment 1080*ebfedea0SLionel Sambuc 1081*ebfedea0SLionel Sambuc2001-02-14 Assar Westerlund <assar@sics.se> 1082*ebfedea0SLionel Sambuc 1083*ebfedea0SLionel Sambuc * set_key.c: correct the two last weak keys in accordance with 1084*ebfedea0SLionel Sambuc FIPS 74. noted by <jhutz@cmu.edu> 1085*ebfedea0SLionel Sambuc 1086*ebfedea0SLionel Sambuc2001-01-30 Assar Westerlund <assar@sics.se> 1087*ebfedea0SLionel Sambuc 1088*ebfedea0SLionel Sambuc * Makefile.am (libdes_la_LDFLAGS): bump version to 3:0:0 1089*ebfedea0SLionel Sambuc 1090*ebfedea0SLionel Sambuc2000-10-19 Assar Westerlund <assar@sics.se> 1091*ebfedea0SLionel Sambuc 1092*ebfedea0SLionel Sambuc * Makefile.in (LIBSRC, LIBOBJ): add rc4* and enc_{read,write} 1093*ebfedea0SLionel Sambuc files so that this library contains the same things as libdes in 1094*ebfedea0SLionel Sambuc Heimdal 1095*ebfedea0SLionel Sambuc 1096*ebfedea0SLionel Sambuc2000-08-16 Assar Westerlund <assar@sics.se> 1097*ebfedea0SLionel Sambuc 1098*ebfedea0SLionel Sambuc * Makefile.am: bump version to 2:1:0 1099*ebfedea0SLionel Sambuc 1100*ebfedea0SLionel Sambuc2000-08-03 Johan Danielsson <joda@pdc.kth.se> 1101*ebfedea0SLionel Sambuc 1102*ebfedea0SLionel Sambuc * enc_writ.c: BSIZE -> des_BSIZE to avoid conflicts with AIX 1103*ebfedea0SLionel Sambuc jfs/fsparam.h 1104*ebfedea0SLionel Sambuc 1105*ebfedea0SLionel Sambuc * enc_read.c: BSIZE -> des_BSIZE to avoid conflicts with AIX 1106*ebfedea0SLionel Sambuc jfs/fsparam.h 1107*ebfedea0SLionel Sambuc 1108*ebfedea0SLionel Sambuc * des_locl.h: BSIZE -> des_BSIZE to avoid conflicts with AIX 1109*ebfedea0SLionel Sambuc jfs/fsparam.h 1110*ebfedea0SLionel Sambuc 1111*ebfedea0SLionel Sambuc2000-02-07 Assar Westerlund <assar@sics.se> 1112*ebfedea0SLionel Sambuc 1113*ebfedea0SLionel Sambuc * Makefile.am: set version to 2:0:0 1114*ebfedea0SLionel Sambuc 1115*ebfedea0SLionel Sambuc2000-01-26 Assar Westerlund <assar@sics.se> 1116*ebfedea0SLionel Sambuc 1117*ebfedea0SLionel Sambuc * mdtest.c: update to pseudo-standard APIs for md4,md5,sha. 1118*ebfedea0SLionel Sambuc * md4.c, md4.h, md5.c, md5.h, sha.c, sha.h: move to the 1119*ebfedea0SLionel Sambuc pseudo-standard APIs 1120*ebfedea0SLionel Sambuc 1121*ebfedea0SLionel Sambuc1999-12-06 Assar Westerlund <assar@sics.se> 1122*ebfedea0SLionel Sambuc 1123*ebfedea0SLionel Sambuc * Makefile.am: set version to 1:0:1 1124*ebfedea0SLionel Sambuc 1125*ebfedea0SLionel Sambuc1999-11-29 Assar Westerlund <assar@sics.se> 1126*ebfedea0SLionel Sambuc 1127*ebfedea0SLionel Sambuc * fcrypt.c (crypt_md5): add trailing $ 1128*ebfedea0SLionel Sambuc 1129*ebfedea0SLionel Sambuc1999-11-13 Assar Westerlund <assar@sics.se> 1130*ebfedea0SLionel Sambuc 1131*ebfedea0SLionel Sambuc * Makefile.am (include_HEADERS): add rc4.h 1132*ebfedea0SLionel Sambuc (libdes_la_SOURCES): add rc4_skey.c 1133*ebfedea0SLionel Sambuc 1134*ebfedea0SLionel Sambuc1999-10-28 Assar Westerlund <assar@sics.se> 1135*ebfedea0SLionel Sambuc 1136*ebfedea0SLionel Sambuc * md5crypt_test.c: change the test case. apparently we should not 1137*ebfedea0SLionel Sambuc include $ after the salt. also make it print more useful stuff 1138*ebfedea0SLionel Sambuc when failing. 1139*ebfedea0SLionel Sambuc 1140*ebfedea0SLionel Sambuc1999-10-20 Assar Westerlund <assar@sics.se> 1141*ebfedea0SLionel Sambuc 1142*ebfedea0SLionel Sambuc * Makefile.am: bump version to 0:2:0 1143*ebfedea0SLionel Sambuc 1144*ebfedea0SLionel Sambuc1999-09-21 Johan Danielsson <joda@pdc.kth.se> 1145*ebfedea0SLionel Sambuc 1146*ebfedea0SLionel Sambuc * des.h: make this work with mips 64-bit abi 1147*ebfedea0SLionel Sambuc 1148*ebfedea0SLionel Sambuc1999-08-14 Johan Danielsson <joda@pdc.kth.se> 1149*ebfedea0SLionel Sambuc 1150*ebfedea0SLionel Sambuc * fcrypt.c (crypt_md5): don't use snprintf 1151*ebfedea0SLionel Sambuc 1152*ebfedea0SLionel Sambuc1999-08-13 Assar Westerlund <assar@sics.se> 1153*ebfedea0SLionel Sambuc 1154*ebfedea0SLionel Sambuc * Makefile.am: add md5crypt_test 1155*ebfedea0SLionel Sambuc 1156*ebfedea0SLionel Sambuc * Makefile.in: add md5crypt_test 1157*ebfedea0SLionel Sambuc 1158*ebfedea0SLionel Sambuc * md5crypt_test.c: test md5 crypt 1159*ebfedea0SLionel Sambuc 1160*ebfedea0SLionel Sambuc * fcrypt.c: always enable md5 crypt 1161*ebfedea0SLionel Sambuc 1162*ebfedea0SLionel Sambuc1999-07-26 Johan Danielsson <joda@pdc.kth.se> 1163*ebfedea0SLionel Sambuc 1164*ebfedea0SLionel Sambuc * Makefile.am: bump version number (changes to md*, sha) 1165*ebfedea0SLionel Sambuc 1166*ebfedea0SLionel Sambuc1999-06-15 Assar Westerlund <assar@sics.se> 1167*ebfedea0SLionel Sambuc 1168*ebfedea0SLionel Sambuc * sha.c (swap_u_int32_t): add _CRAY 1169*ebfedea0SLionel Sambuc 1170*ebfedea0SLionel SambucSat Apr 10 23:02:30 1999 Johan Danielsson <joda@hella.pdc.kth.se> 1171*ebfedea0SLionel Sambuc 1172*ebfedea0SLionel Sambuc * destest.c: fixes for crays 1173*ebfedea0SLionel Sambuc 1174*ebfedea0SLionel SambucThu Apr 1 11:26:38 1999 Johan Danielsson <joda@hella.pdc.kth.se> 1175*ebfedea0SLionel Sambuc 1176*ebfedea0SLionel Sambuc * Makefile.am: noinst_PROGRAMS -> check_PROGRAMS; add TESTS; don't 1177*ebfedea0SLionel Sambuc build rpw, and speed 1178*ebfedea0SLionel Sambuc 1179*ebfedea0SLionel SambucMon Mar 22 20:16:26 1999 Johan Danielsson <joda@hella.pdc.kth.se> 1180*ebfedea0SLionel Sambuc 1181*ebfedea0SLionel Sambuc * Makefile.am: hash.h 1182*ebfedea0SLionel Sambuc 1183*ebfedea0SLionel Sambuc * sha.c: use hash.h; fixes for crays 1184*ebfedea0SLionel Sambuc 1185*ebfedea0SLionel Sambuc * md5.c: use hash.h; fixes for crays 1186*ebfedea0SLionel Sambuc 1187*ebfedea0SLionel Sambuc * md4.c: use hash.h; fixes for crays 1188*ebfedea0SLionel Sambuc 1189*ebfedea0SLionel Sambuc * hash.h: common stuff from md4, md5, and sha1 1190*ebfedea0SLionel Sambuc 1191*ebfedea0SLionel SambucSat Mar 20 00:16:53 1999 Assar Westerlund <assar@sics.se> 1192*ebfedea0SLionel Sambuc 1193*ebfedea0SLionel Sambuc * rnd_keys.c (des_rand_data): move declaration to get rid of 1194*ebfedea0SLionel Sambuc warning 1195*ebfedea0SLionel Sambuc 1196*ebfedea0SLionel SambucThu Mar 18 11:22:28 1999 Johan Danielsson <joda@hella.pdc.kth.se> 1197*ebfedea0SLionel Sambuc 1198*ebfedea0SLionel Sambuc * Makefile.am: include Makefile.am.common 1199*ebfedea0SLionel Sambuc 1200*ebfedea0SLionel SambucMon Mar 15 17:36:41 1999 Johan Danielsson <joda@hella.pdc.kth.se> 1201*ebfedea0SLionel Sambuc 1202*ebfedea0SLionel Sambuc * rnd_keys.c (des_rand_data): if not using setitimer, block 1203*ebfedea0SLionel Sambuc SIGCHLD around fork(), also make sure we get the status of the 1204*ebfedea0SLionel Sambuc child process 1205*ebfedea0SLionel Sambuc (fake_signal): emulate signal using sigaction 1206*ebfedea0SLionel Sambuc 1207*ebfedea0SLionel SambucTue Jan 12 05:06:54 1999 Assar Westerlund <assar@sics.se> 1208*ebfedea0SLionel Sambuc 1209*ebfedea0SLionel Sambuc * des.h: sparcv9 is also 64 bits, use `unsigned int' instead of 1210*ebfedea0SLionel Sambuc `unsigned long' 1211*ebfedea0SLionel Sambuc 1212*ebfedea0SLionel SambucSun Nov 22 10:40:09 1998 Assar Westerlund <assar@sics.se> 1213*ebfedea0SLionel Sambuc 1214*ebfedea0SLionel Sambuc * Makefile.in (WFLAGS): set 1215*ebfedea0SLionel Sambuc 1216*ebfedea0SLionel SambucMon May 25 05:24:56 1998 Assar Westerlund <assar@sics.se> 1217*ebfedea0SLionel Sambuc 1218*ebfedea0SLionel Sambuc * Makefile.in (clean): try to remove shared library debris 1219*ebfedea0SLionel Sambuc 1220*ebfedea0SLionel SambucSun Apr 19 09:50:53 1998 Assar Westerlund <assar@sics.se> 1221*ebfedea0SLionel Sambuc 1222*ebfedea0SLionel Sambuc * Makefile.in: add symlink magic for linux 1223*ebfedea0SLionel Sambuc 1224*ebfedea0SLionel SambucSun Nov 9 07:14:45 1997 Assar Westerlund <assar@sics.se> 1225*ebfedea0SLionel Sambuc 1226*ebfedea0SLionel Sambuc * mdtest.c: print out old and new string 1227*ebfedea0SLionel Sambuc 1228