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) |
static boolean |
isQuantumVulnerable(CryptoServiceProperties service)
Return true if the service is one of the quantum-vulnerable public-key algorithms: the
integer factorisation and discrete logarithm schemes NIST IR 8547 deprecates after 2030 and
disallows after 2035 (RSA, DSA, DH/MQV, ECDSA/ECDH and their variants, EdDSA, X25519/X448,
ElGamal, Cramer-Shoup, Naccache-Stern and the KEMs and key agreements built on them).
|
public static boolean isQuantumVulnerable(CryptoServiceProperties service)
service - the service properties passed to the constraint.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)