Package org.bouncycastle.operator
Interface SecretKeySizeProvider
- All Known Implementing Classes:
DefaultSecretKeySizeProvider
public interface SecretKeySizeProvider
-
Method Summary
Modifier and TypeMethodDescriptionintgetKeySize(ASN1ObjectIdentifier algorithm) Return the key size implied by the OID, if one exists.intgetKeySize(AlgorithmIdentifier algorithmIdentifier)
-
Method Details
-
getKeySize
-
getKeySize
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.
-