Commit 09e1ddf0 authored by Niels Möller's avatar Niels Möller

Reverted change from mpz_tstbit to mpz_even_p.

Rev: nettle/rsa-keygen.c:1.7
parent c72c16b7
......@@ -87,7 +87,7 @@ rsa_generate_keypair(struct rsa_public_key *pub,
/* We have a fixed e. Check that it makes sense */
/* It must be odd */
if (mpz_even_p(pub->e, 0))
if (!mpz_tstbit(pub->e, 0))
return 0;
/* And 3 or larger */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment