Searched refs:dhg (Results 1 – 1 of 1) sorted by relevance
44 parse_prime(int linenum, char *line, struct dhgroup *dhg) in parse_prime() argument86 (dhg->size = (int)strtonum(strsize, 0, 64*1024, &errstr)) == 0 || in parse_prime()90 dhg->size++; in parse_prime()98 if ((dhg->g = BN_new()) == NULL) in parse_prime()100 if ((dhg->p = BN_new()) == NULL) in parse_prime()102 if (BN_hex2bn(&dhg->g, gen) == 0) in parse_prime()105 if (BN_hex2bn(&dhg->p, prime) == 0) in parse_prime()108 if (BN_num_bits(dhg->p) != dhg->size) in parse_prime()111 if (BN_is_zero(dhg->g) || BN_is_one(dhg->g)) in parse_prime()117 BN_clear_free(dhg->g); in parse_prime()[all …]