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:
@@ -151,6 +151,15 @@ imath_rsa_public_decrypt(int flen, const unsigned char* from,
|
|||||||
BN2mpz(&n, rsa->n);
|
BN2mpz(&n, rsa->n);
|
||||||
BN2mpz(&e, rsa->e);
|
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(&s);
|
||||||
mp_int_init(&us);
|
mp_int_init(&us);
|
||||||
mp_int_read_unsigned(&s, rk_UNCONST(from), flen);
|
mp_int_read_unsigned(&s, rk_UNCONST(from), flen);
|
||||||
|
Reference in New Issue
Block a user