public class ConstraintUtils
extends java.lang.Object
Constructor and Description |
---|
ConstraintUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
bitsOfSecurityFor(java.math.BigInteger p)
Return the bits of security for the passed in RSA modulus or DH/DSA group value.
|
static int |
bitsOfSecurityFor(ECCurve curve)
Return the bits of security for the passed in Elliptic Curve.
|
static int |
bitsOfSecurityForFF(int strength) |
public static int bitsOfSecurityFor(java.math.BigInteger p)
p
- a modulus or group valuepublic static int bitsOfSecurityFor(ECCurve curve)
curve
- the ECCurve of interest.public static int bitsOfSecurityForFF(int strength)