Pawel Sm7 created SSHD-391:
------------------------------
Summary: Incorrect defaulting to DHG1 in 'No suitable primes
found' scenario
Key: SSHD-391
URL: https://issues.apache.org/jira/browse/SSHD-391
Project: MINA SSHD
Issue Type: Bug
Affects Versions: 0.13.0
Reporter: Pawel Sm7
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()));
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)