--- pgp/src/rsagen.c 2018/04/24 16:42:31 1.1.1.6 +++ pgp/src/rsagen.c 2018/04/24 16:43:47 1.1.1.7 @@ -113,7 +113,8 @@ static void derive_rsakeys(unitptr n, un mp_dec(e); mp_dec(e); /* precompensate for preincrements of e */ do { mp_inc(e); mp_inc(e); /* try odd e's until we get it. */ - mp_gcd(ptemp,e,phi); /* look for e such that gcd(e,phi(n)) = 1 */ + mp_gcd(ptemp,e,phi); /* look for e such that + gcd(e,phi(n)) = 1 */ } while (testne(ptemp,1)); /* Now we have e. Next, compute d, then u, then n. @@ -211,7 +212,8 @@ int rsa_keygen(unitptr n, unitptr e, uni return(status); /* failed to find a suitable prime */ /* Note that at this point we can't be sure that q>p. */ - if (mp_compare(p,q) >= 0) { /* ensure that p= 0) { /* ensure that p