public class DiffieHellmanGroups
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DiffieHellmanGroups.DHGroup |
| Modifier and Type | Field and Description |
|---|---|
static java.math.BigInteger |
group1 |
static java.math.BigInteger |
group14 |
static java.math.BigInteger |
group15 |
static java.math.BigInteger |
group16 |
static java.math.BigInteger |
group17 |
static java.math.BigInteger |
group18 |
static java.math.BigInteger |
group5 |
static int |
TESTS_COMPOSITE |
static int |
TYPE_SAFE |
| Constructor and Description |
|---|
DiffieHellmanGroups() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<java.math.BigInteger> |
allDefaultGroups() |
static DiffieHellmanGroups.DHGroup |
getSafePrime(com.sshtools.common.util.UnsignedInteger32 maximumSize)
get the biggest safe prime from the list that is <= maximumSize
|
static void |
loadGroups(java.net.URI url) |
static boolean |
verifyParameters(java.math.BigInteger shared,
java.math.BigInteger p) |
public static final java.math.BigInteger group1
public static final java.math.BigInteger group5
public static final java.math.BigInteger group14
public static final java.math.BigInteger group15
public static final java.math.BigInteger group16
public static final java.math.BigInteger group17
public static final java.math.BigInteger group18
public static final int TYPE_SAFE
public static final int TESTS_COMPOSITE
public static void loadGroups(java.net.URI url)
throws java.io.IOException
java.io.IOExceptionpublic static boolean verifyParameters(java.math.BigInteger shared,
java.math.BigInteger p)
public static DiffieHellmanGroups.DHGroup getSafePrime(com.sshtools.common.util.UnsignedInteger32 maximumSize)
maximumSize - public static java.util.Collection<java.math.BigInteger> allDefaultGroups()
Copyright © 2022. All rights reserved.