Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-391

Incorrect defaulting to DHG1 in 'No suitable primes found' scenario

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.14.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()));

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            pawelsm7 Pawel Sm7
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: