Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.13.0
-
None
Description
In DHGEX.chooseDH() for the case 'No suitable primes found, defaulting to DHG1' we need to swap P1 and G.
It should be:
return getDH(new BigInteger(DHGroupData.getP1()), new
BigInteger(DHGroupData.getG()));
instead of:
return getDH(new BigInteger(DHGroupData.getG()), new
BigInteger(DHGroupData.getP1()));