Bouncy Castle Cryptography Library 1.59

org.bouncycastle.operator
Interface SecretKeySizeProvider

All Known Implementing Classes:
DefaultSecretKeySizeProvider

public interface SecretKeySizeProvider


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

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

getKeySize

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

Bouncy Castle Cryptography Library 1.59