Interface SecretKeySizeProvider

All Known Implementing Classes:
DefaultSecretKeySizeProvider

public interface SecretKeySizeProvider
  • Method Summary

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

    • 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.