SecretKeySizeProvider (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.operator

## Interface SecretKeySizeProvider

- All Known Implementing Classes:
    DefaultSecretKeySizeProvider

      public interface SecretKeySizeProvider

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getKeySize(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)`
    `int` | `getKeySize(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)` Return the key size implied by the OID, if one exists.

- - ### Method Detail

    - #### getKeySize

          int getKeySize(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)

    - #### getKeySize

          int getKeySize(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)

      Return the key size implied by the OID, if one exists.
      Parameters:
        `algorithm` - the OID of the algorithm of interest.
      Returns:
        -1 if there is no fixed key size associated with the OID, or more information is required.