Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.crypto.constraints
Class ConstraintUtils

    java.lang.Object
      org.bouncycastle.crypto.constraints.ConstraintUtils

public class ConstraintUtils
extends java.lang.Object

Constructor Summary
`ConstraintUtils()`

Method Summary
`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)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ConstraintUtils

    public ConstraintUtils()

Method Detail

### bitsOfSecurityFor

    public static int bitsOfSecurityFor(java.math.BigInteger p)

  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

    public static int bitsOfSecurityFor(ECCurve curve)

  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)

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD