Add commeted out test that exponent is > 3

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18092 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-09-15 14:09:28 +00:00
parent e18663839d
commit 364e63f12a

View File

@@ -151,6 +151,15 @@ imath_rsa_public_decrypt(int flen, const unsigned char* from,
BN2mpz(&n, rsa->n);
BN2mpz(&e, rsa->e);
#if 0
/* Check that the exponent is larger then 3 */
if (mp_int_compare_value(&e, 3) <= 0) {
mp_int_clear(&n);
mp_int_clear(&e);
return -1;
}
#endif
mp_int_init(&s);
mp_int_init(&us);
mp_int_read_unsigned(&s, rk_UNCONST(from), flen);