Package org.bouncycastle.operator
Class DefaultSecretKeySizeProvider
java.lang.Object
org.bouncycastle.operator.DefaultSecretKeySizeProvider
- All Implemented Interfaces:
SecretKeySizeProvider
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
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)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultSecretKeySizeProvider
public DefaultSecretKeySizeProvider()
-
-
Method Details
-
getKeySize
public int getKeySize(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier) - Specified by:
getKeySize
in interfaceSecretKeySizeProvider
-
getKeySize
public int getKeySize(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) Description copied from interface:SecretKeySizeProvider
Return the key size implied by the OID, if one exists.- Specified by:
getKeySize
in interfaceSecretKeySizeProvider
- 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.
-