Class DiffieHellmanGroups
java.lang.Object
com.sshtools.common.ssh.components.DiffieHellmanGroups
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final BigIntegerstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<BigInteger>static DiffieHellmanGroups.DHGroupgetSafePrime(com.sshtools.common.util.UnsignedInteger32 maximumSize) get the biggest safe prime from the list that is <= maximumSizestatic voidloadGroups(URI url) static booleanverifyParameters(BigInteger shared, BigInteger p)
-
Field Details
-
group1
-
group5
-
group14
-
group15
-
group16
-
group17
-
group18
-
TYPE_SAFE
public static final int TYPE_SAFE- See Also:
-
TESTS_COMPOSITE
public static final int TESTS_COMPOSITE- See Also:
-
-
Constructor Details
-
DiffieHellmanGroups
public DiffieHellmanGroups()
-
-
Method Details
-
loadGroups
- Throws:
IOException
-
verifyParameters
-
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
-