Top Fields Constructors Methods
org.bouncycastle.operator

public Class DefaultSecretKeySizeProvider

extends Object
implements SecretKeySizeProvider
Class Inheritance
All Implemented Interfaces
org.bouncycastle.operator.SecretKeySizeProvider
Imports
java.util.Collections, .HashMap, .Map, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.kisa.KISAObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.ntt.NTTObjectIdentifiers, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.util.Integers

Field Summary

Modifier and TypeField and Description
public static final SecretKeySizeProvider
private static final Map<K, V>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public int
getKeySize(ASN1ObjectIdentifier
the OID of the algorithm of interest.
algorithm
)

Implements org.bouncycastle.operator.SecretKeySizeProvider.getKeySize.

Return the key size implied by the OID, if one exists.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final SecretKeySizeProvider INSTANCE
KEY_SIZESback to summary
private static final Map<K, V> KEY_SIZES

Constructor Detail

DefaultSecretKeySizeProviderback to summary
public DefaultSecretKeySizeProvider()

Method Detail

getKeySizeback to summary
public int getKeySize(AlgorithmIdentifier algorithmIdentifier)

Implements org.bouncycastle.operator.SecretKeySizeProvider.getKeySize.

getKeySizeback to summary
public int getKeySize(ASN1ObjectIdentifier algorithm)

Implements org.bouncycastle.operator.SecretKeySizeProvider.getKeySize.

Doc from org.bouncycastle.operator.SecretKeySizeProvider.getKeySize.

Return the key size implied by the OID, if one exists.

Parameters
algorithm:ASN1ObjectIdentifier

the OID of the algorithm of interest.

Returns:int

-1 if there is no fixed key size associated with the OID, or more information is required.