pub fn validate_dh_value(val: &BigUint, p: &BigUint) -> Result<(), E2eError>Expand description
Validate a DH public value against the prime.
Applies to both g_a and g_b: the value must lie strictly between 1 and
p - 1, and at least 2^(2048-64) away from both ends of that range.