Interface SecretKeySizeProvider

All Known Implementing Classes:
DefaultSecretKeySizeProvider

public interface SecretKeySizeProvider
  • Method Details

    • getKeySize

      int getKeySize(AlgorithmIdentifier algorithmIdentifier)
    • getKeySize

      int getKeySize(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.