Class ConstraintUtils
java.lang.Object
org.bouncycastle.crypto.constraints.ConstraintUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
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)
-
Constructor Details
-
ConstraintUtils
public ConstraintUtils()
-
-
Method Details
-
bitsOfSecurityFor
Return the bits of security for the passed in RSA modulus or DH/DSA group value.- Parameters:
p
- a modulus or group value- Returns:
- the security strength in bits.
-
bitsOfSecurityFor
Return the bits of security for the passed in Elliptic Curve.- Parameters:
curve
- the ECCurve of interest.- Returns:
- the security strength in bits.
-
bitsOfSecurityForFF
public static int bitsOfSecurityForFF(int strength)
-