Commit Graph

647 Commits

Author SHA1 Message Date
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
Love Hörnquist Åstrand
9656c41201 add missing ;
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19710 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 22:35:11 +00:00
Love Hörnquist Åstrand
c49388725b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19707 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 20:56:18 +00:00
Love Hörnquist Åstrand
7c04a560eb Add i2d_RSAPrivateKey.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19703 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 20:23:24 +00:00
Love Hörnquist Åstrand
f6139e837c cb_func should return 1 to have the generation code to continue.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19700 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 19:43:55 +00:00
Love Hörnquist Åstrand
f13b6e5705 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19699 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 19:27:31 +00:00
Love Hörnquist Åstrand
500e46ca83 test RSA_generate_key_ex
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19698 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 19:27:02 +00:00
Love Hörnquist Åstrand
80ed3308f9 Add imath_rsa_generate_key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19697 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 19:26:10 +00:00
Love Hörnquist Åstrand
4fe8e7566e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19683 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-04 11:33:17 +00:00
Love Hörnquist Åstrand
230bf3309e add RSA_generate_key_ex
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19612 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-31 10:43:47 +00:00
Love Hörnquist Åstrand
800d5b5cc8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19274 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:37:53 +00:00
Love Hörnquist Åstrand
758f8afd95 CLEANFILES += test_crypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19270 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-07 16:28:14 +00:00
Love Hörnquist Åstrand
9de2bce244 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19232 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 07:48:46 +00:00
Love Hörnquist Åstrand
e7a2d233f5 Add rsakey.der to EXTRA_DIST.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19231 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 07:48:27 +00:00
Love Hörnquist Åstrand
38f4b80b48 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19225 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 22:45:42 +00:00
Love Hörnquist Åstrand
db71758e08 Add test_crypto.in to EXTRA_DIST.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19224 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 22:28:00 +00:00
Love Hörnquist Åstrand
8079e0a3dd Split built programs and scripts for tests
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19223 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 19:57:07 +00:00
Love Hörnquist Åstrand
fb4bac7d1a x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19220 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 07:44:08 +00:00
Love Hörnquist Åstrand
7930ababe4 Add more spaces to allow sh to parse this
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19219 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-05 07:39:08 +00:00
Love Hörnquist Åstrand
0afbff54bc x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19218 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 23:55:05 +00:00
Love Hörnquist Åstrand
084786dcf9 Explain what the fixed "sha1" checksum test tries to test.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19217 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 23:53:30 +00:00
Love Hörnquist Åstrand
768fb6de89 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19211 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 23:22:01 +00:00