Commit Graph

23 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
49c442c958 Fix the rsa-decrypt failed case that been hauting me for a while.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19205 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 21:31:30 +00:00
Love Hörnquist Åstrand
d37ea650ff Revert preious, something fishy is going on.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19204 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-02 09:14:55 +00:00
Love Hörnquist Åstrand
9dc51937ea Use mp_int_to_binary to encode bignums
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19202 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-02 08:59:59 +00:00
Love Hörnquist Åstrand
548ec1a806 Check if header is there
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19200 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-02 08:49:16 +00:00
Love Hörnquist Åstrand
da9641ef4f split return values.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19170 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 11:48:01 +00:00
Love Hörnquist Åstrand
28229b426f Return -1 for failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19149 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 11:24:33 +00:00
Love Hörnquist Åstrand
96df083d5d Its ok with smaller signatures.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19148 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 11:12:11 +00:00
Love Hörnquist Åstrand
81798cfcd3 Split error codes for now
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19135 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-27 10:04:30 +00:00
Love Hörnquist Åstrand
364e63f12a Add commeted out test that exponent is > 3
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-15 14:09:28 +00:00
Love Hörnquist Åstrand
a554fa893b Reverse 1.5, not needed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18043 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-07 08:09:21 +00:00
Love Hörnquist Åstrand
b69e61c398 Check for Daniel Bleichenbacher an attack on PKCS #1 v1.5 signatures.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18029 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-09-05 21:24:48 +00:00
Love Hörnquist Åstrand
50b0269256 s/11/RSA_PKCS1_PADDING_SIZE/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17669 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-22 02:07:25 +00:00
Love Hörnquist Åstrand
7329fc2b51 Fix the last one of the asserts.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17537 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-11 22:49:13 +00:00
Love Hörnquist Åstrand
7214c1cc3b Fix a off by one.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17500 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-07 11:57:05 +00:00
Love Hörnquist Åstrand
22c43d0f77 Add RSA support using imath.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17492 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-07 11:27:38 +00:00