Top Constructors Methods
org.bouncycastle.crypto.constraints

public Class ConstraintUtils

extends Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.math.ec.ECCurve

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

the security strength in bits.
bitsOfSecurityFor
(BigInteger
a modulus or group value
p
)

Return the bits of security for the passed in RSA modulus or DH/DSA group value.

public static int

Returns:

the security strength in bits.
bitsOfSecurityFor
(ECCurve
the ECCurve of interest.
curve
)

Return the bits of security for the passed in Elliptic Curve.

public static int
bitsOfSecurityForFF(int strength)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConstraintUtilsback to summary
public ConstraintUtils()

Method Detail

bitsOfSecurityForback to summary
public static int bitsOfSecurityFor(BigInteger p)

Return the bits of security for the passed in RSA modulus or DH/DSA group value.

Parameters
p:BigInteger

a modulus or group value

Returns:int

the security strength in bits.

bitsOfSecurityForback to summary
public static int bitsOfSecurityFor(ECCurve curve)

Return the bits of security for the passed in Elliptic Curve.

Parameters
curve:ECCurve

the ECCurve of interest.

Returns:int

the security strength in bits.

bitsOfSecurityForFFback to summary
public static int bitsOfSecurityForFF(int strength)