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