You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Pawel Sm7 (JIRA)" <ji...@apache.org> on 2014/12/17 11:01:14 UTC

[jira] [Created] (SSHD-391) Incorrect defaulting to DHG1 in 'No suitable primes found' scenario

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)