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
Love Hörnquist Åstrand
f2c39a5dd3
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19749 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-06 00:45:10 +00:00
Love Hörnquist Åstrand
3d31299f48
With this crt works, but something is wrong in the key generation, so
...
keep it turned off for now.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-06 00:44:35 +00:00
Love Hörnquist Åstrand
abc442b8b4
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 23:31:03 +00:00
Love Hörnquist Åstrand
8986d97b0c
Allow testing effect of key-blinding
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19746 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 23:30:36 +00:00
Love Hörnquist Åstrand
dd537ba816
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 23:22:52 +00:00
Love Hörnquist Åstrand
12d1def6a6
Add timing info to rsa keygen.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19744 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 23:22:11 +00:00
Love Hörnquist Åstrand
661cad017c
don't include <imath/rsamath.h>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19743 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 23:20:48 +00:00
Love Hörnquist Åstrand
0f47667bfd
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19742 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 21:36:27 +00:00
Love Hörnquist Åstrand
f0f64c5deb
prune off stuff we dont use
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19741 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 21:30:34 +00:00
Love Hörnquist Åstrand
b6135672df
Use mp_int_compare_zero instead of "MP_SIGN(&u) == MP_NEG"
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19740 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 21:11:57 +00:00
Love Hörnquist Åstrand
6d95db6ea7
Prune off stuff we don't use from imathsource
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19739 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 21:07:34 +00:00
Love Hörnquist Åstrand
fed2ec931e
Use mp_int_exptmod directly.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19738 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 21:04:22 +00:00
Love Hörnquist Åstrand
f0672f96a0
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 21:01:48 +00:00
Love Hörnquist Åstrand
cda55ca141
Use a larger table of small primes, cut down genenration in best cases
...
to half compared to using a small table.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19736 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 20:59:01 +00:00
Love Hörnquist Åstrand
3010e18998
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19735 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 20:26:43 +00:00
Love Hörnquist Åstrand
b2cafda0f2
add RSA_FLAG_NO_BLINDING
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19734 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 20:26:23 +00:00
Love Hörnquist Åstrand
fbb2803309
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19724 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:15:31 +00:00
Love Hörnquist Åstrand
cb85e1d9e0
Add keyblinding, add a commented out CRT based RSA.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19723 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 18:15:09 +00:00
Love Hörnquist Åstrand
dd43893796
Add iqmp.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19714 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-05 00:47:03 +00:00
Love Hörnquist Åstrand
3be59531fc
(imath_rsa_generate_key): make p > q
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19713 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 23:41:43 +00:00
Love Hörnquist Åstrand
84b8adbb48
Add timeing version of the loop.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19711 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 22:47:06 +00:00