Displaying 1 result from an estimated 1 matches for "generator_known".
2014 Dec 28
2
[Bug 2330] New: Moduli Generation - Generator 3 not possible at all!
...OS: Other
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh-keygen
Assignee: unassigned-bugs at mindrot.org
Reporter: wiwi at progon.net
The cause lies in lines 713+ in moduli.c
/*
* guess unknown generator
*/
if (generator_known == 0) {
if (BN_mod_word(p, 24) == 11)
generator_known = 2;
else if (BN_mod_word(p, 12) == 5)
generator_known = 3;
else {
u_int32_t r = BN_mod_word(p, 10);
if (r == 3 || r == 7)
generator_known = 5;
}
}
As p is Sophie-Germain prime: p=2q+1, where q is a prime as well.
p...