Class DiffieHellmanGroups

java.lang.Object
com.sshtools.common.ssh.components.DiffieHellmanGroups

public class DiffieHellmanGroups extends Object
  • Field Details

  • Constructor Details

    • DiffieHellmanGroups

      public DiffieHellmanGroups()
  • Method Details

    • loadGroups

      public static void loadGroups(URI url) throws IOException
      Throws:
      IOException
    • verifyParameters

      public static boolean verifyParameters(BigInteger shared, BigInteger p)
    • getSafePrime

      public static DiffieHellmanGroups.DHGroup getSafePrime(com.sshtools.common.util.UnsignedInteger32 maximumSize)
      get the biggest safe prime from the list that is <= maximumSize
      Parameters:
      maximumSize -
      Returns:
      BigInteger
    • allDefaultGroups

      public static Collection<BigInteger> allDefaultGroups()