Commit Graph

689 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
65915400c8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-01 22:08:50 +00:00
Love Hörnquist Åstrand
60cbef9fc8 Name the random file ~/.rnd, this is the same as OpenSSL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-01 22:08:41 +00:00
Love Hörnquist Åstrand
70c78948da x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-31 12:44:43 +00:00
Love Hörnquist Åstrand
24be41ca14 Make get_bytes static.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20093 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-31 12:44:28 +00:00
Love Hörnquist Åstrand
87b4962f43 (RAND_write_file): default to failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20091 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-31 12:42:50 +00:00
Love Hörnquist Åstrand
3e77eedd10 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20068 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-30 19:42:24 +00:00
Love Hörnquist Åstrand
040695a3bd Implement RAND_file_name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20067 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-30 19:41:35 +00:00
Love Hörnquist Åstrand
b73c455908 test RAND_file_name().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20066 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-30 19:40:56 +00:00
Love Hörnquist Åstrand
718bb416be x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20065 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-30 18:32:15 +00:00
Love Hörnquist Åstrand
2bfbb56713 Provide dummy implementation of RAND_file_name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-30 18:31:33 +00:00
Love Hörnquist Åstrand
ba8cd2915a add RAND_file_name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20063 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-30 18:30:36 +00:00
Love Hörnquist Åstrand
63d9699b5b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20032 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 10:01:21 +00:00
Love Hörnquist Åstrand
dcbf620e8c clean more files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20031 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 10:00:47 +00:00
Love Hörnquist Åstrand
791e5558d6 access private functions though the RAND_METHOD switch, move global
egd function to rand-egd.c


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20030 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 09:56:30 +00:00
Love Hörnquist Åstrand
cc60062fbe access private functions though the RAND_METHOD switch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20029 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 09:55:42 +00:00
Love Hörnquist Åstrand
553f65418a unexport private functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20028 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 09:54:56 +00:00
Love Hörnquist Åstrand
c8aaf68c9b Unexport internal functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20027 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 09:54:00 +00:00
Love Hörnquist Åstrand
0381676ae8 access private functions though the RAND_METHOD switch, don't truncate
the seed-file, move global egd function to rand-egd.c


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 09:53:02 +00:00
Love Hörnquist Åstrand
75d0b8416e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20025 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 09:50:58 +00:00
Love Hörnquist Åstrand
d5f0098d37 add basic random tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20024 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 09:49:49 +00:00
Love Hörnquist Åstrand
3f64ab1f97 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20022 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 08:16:23 +00:00
Love Hörnquist Åstrand
ac46eccff7 SGI cc doesn' like return void_returning_function(); in a void
returning function.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-21 08:14:53 +00:00
Love Hörnquist Åstrand
3a8701962c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20006 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-20 20:59:34 +00:00
Love Hörnquist Åstrand
d4bb9814b0 Allow select rand method.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-20 20:58:49 +00:00
Love Hörnquist Åstrand
d4ff6d4b96 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20004 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-20 20:51:22 +00:00
Love Hörnquist Åstrand
2245b0bb00 expose _hc_rand_unix_status and the internal RAND_METHODs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20003 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-20 20:51:03 +00:00
Love Hörnquist Åstrand
a019133d4b expose _hc_rand_unix_status
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20002 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-20 20:50:11 +00:00
Love Hörnquist Åstrand
51e8f07957 Implement RAND_load_file and RAND_write_file.
Select UNIX random device if available, otherwise use Fortuna.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20001 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-20 20:49:28 +00:00
Love Hörnquist Åstrand
8a8e5b93f0 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20000 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-20 20:15:45 +00:00
Love Hörnquist Åstrand
d71e77f64b add EGD/PRNGD support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19997 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-20 20:15:28 +00:00
Love Hörnquist Åstrand
0a66d3e486 use LIBADD_roken
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19985 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 18:45:03 +00:00
Love Hörnquist Åstrand
b6d9890960 update version number and remove depenency on libvers for libraries
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19974 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 17:30:31 +00:00
Love Hörnquist Åstrand
1765c9718d Add fortuna based on Marko Kreen s pgcrypt, no enabled yet
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19942 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-17 00:24:33 +00:00
Love Hörnquist Åstrand
1eb0ccb9c5 update LICENSE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19892 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-13 13:25:27 +00:00
Love Hörnquist Åstrand
2bbb877357 if RAND is unhappy, don't run the tests.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19856 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 20:37:59 +00:00
Love Hörnquist Åstrand
5fdf640ff5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19855 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 20:24:12 +00:00
Love Hörnquist Åstrand
4ccc092c18 Update to imath-1.8 from Michael Fromberger
Fixed a bug in s_udiv() affecting the computation of quotient digits.
Thanks to Love Åstrand for isolating this bug.  Also in this release,
defining USELLONG=Y or USELLONG=N on the command line for make will
switch support for the "long long" data type on or off without having
to edit the Makefile.  The default is still to permit use of "long
long", even though the type is not standard ANSI C90.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19854 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 20:23:15 +00:00
Love Hörnquist Åstrand
e617970842 remove more debug stuff from s_udiv
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19832 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 03:59:34 +00:00
Love Hörnquist Åstrand
63a029268a x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19831 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 03:56:18 +00:00
Love Hörnquist Åstrand
008afda06f (s_udiv): Allocate one more for q, remove debug printfs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19830 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 03:55:51 +00:00
Love Hörnquist Åstrand
b6d99cd3d5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19803 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 17:35:05 +00:00
Love Hörnquist Åstrand
3d77ddb771 (s_udiv): make a copy of a and b before we start to make sure there is
something un-tainted to print in cause of failure. XXX remove this delta
(s_embar): make static


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19802 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-10 17:28:52 +00:00
Love Hörnquist Åstrand
2230b87e17 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 10:04:47 +00:00
Love Hörnquist Åstrand
0415cd0901 Correct the test if the rsa is a complete RSA private key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19774 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 10:04:20 +00:00
Love Hörnquist Åstrand
f4368cb948 (i2d_RSAPrivateKey): Fail if private key isn't complete.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19769 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-08 20:39:44 +00:00
Love Hörnquist Åstrand
5afe164e80 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19758 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-08 10:17:50 +00:00
Love Hörnquist Åstrand
fde9807985 More verbose debugging in case of assertion failure. XXX temporary for
AIX problem.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-08 10:17:31 +00:00
Love Hörnquist Åstrand
7e00f00832 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19752 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-06 15:31:46 +00:00
Love Hörnquist Åstrand
2ceeb480a5 try some more loops for check_rsa
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19751 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-06 13:56:43 +00:00
Love Hörnquist Åstrand
693d87cfbf Fix a silly typo, and with that enable CRT since now it works.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19750 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-06 13:45:25 +00:00