Top Inners Fields Constructors Methods
org.bouncycastle.jcajce.provider

pack-priv final Class ProvDES

extends AlgorithmProvider
Class Inheritance
Imports
java.security.InvalidAlgorithmParameterException, .InvalidKeyException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, .InvalidKeySpecException, .KeySpec, javax.crypto.SecretKey, javax.crypto.spec.DESKeySpec, .IvParameterSpec, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.crypto.AuthenticationParameters, .AuthenticationParametersWithIV, .Parameters, .ParametersWithIV, .PasswordConverter, .SymmetricKeyGenerator, org.bouncycastle.crypto.fips.FipsSHS, org.bouncycastle.crypto.general.DES, .SecureHash, org.bouncycastle.crypto.internal.ValidatedSymmetricKey, org.bouncycastle.crypto.internal.params.DesParameters

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private Class<T>[]
private ParametersCreatorProvider<Parameters>
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
public void

Field Detail

availableSpecsback to summary
private Class<T>[] availableSpecs
generalParametersCreatorProviderback to summary
private ParametersCreatorProvider<Parameters> generalParametersCreatorProvider
PREFIXback to summary
private static final String PREFIX

Constructor Detail

ProvDESback to summary
pack-priv ProvDES()

Method Detail

addAliasback to summary
private void addAlias(BouncyCastleFipsProvider provider, ASN1ObjectIdentifier oid, String name)
configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.AlgorithmProvider.configure.

org.bouncycastle.jcajce.provider back to summary

pack-priv Class ProvDES.KeyFactory

extends BaseSecretKeyFactory
Class Inheritance

Field Summary

Inherited from org.bouncycastle.jcajce.provider.BaseSecretKeyFactory:
algorithmalgorithmNamevalidator

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected SecretKey
engineGenerateSecret(KeySpec
the specification (key material) of the secret key
keySpec
)

Overrides org.bouncycastle.jcajce.provider.BaseSecretKeyFactory.engineGenerateSecret.

Generates a SecretKey object from the provided key specification (key material).
protected KeySpec
engineGetKeySpec(SecretKey
the key
key
,
Class<T>
the requested format in which the key material shall be returned
keySpec
)

Overrides org.bouncycastle.jcajce.provider.BaseSecretKeyFactory.engineGetKeySpec.

Returns a specification (key material) of the given key object in the requested format.
Inherited from org.bouncycastle.jcajce.provider.BaseSecretKeyFactory:
engineTranslateKeygenericGetKeySpec

Constructor Detail

KeyFactoryback to summary
pack-priv KeyFactory()

Method Detail

engineGenerateSecretback to summary
protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException

Overrides org.bouncycastle.jcajce.provider.BaseSecretKeyFactory.engineGenerateSecret.

Doc from javax.crypto.SecretKeyFactorySpi.engineGenerateSecret.

Generates a SecretKey object from the provided key specification (key material).

Parameters
keySpec:KeySpec

the specification (key material) of the secret key

Returns:SecretKey

the secret key

Exceptions
InvalidKeySpecException:
if the given key specification is inappropriate for this secret-key factory to produce a secret key.
engineGetKeySpecback to summary
protected KeySpec engineGetKeySpec(SecretKey key, Class<T> keySpec) throws InvalidKeySpecException

Overrides org.bouncycastle.jcajce.provider.BaseSecretKeyFactory.engineGetKeySpec.

Doc from javax.crypto.SecretKeyFactorySpi.engineGetKeySpec.

Returns a specification (key material) of the given key object in the requested format.

Parameters
key:SecretKey

the key

keySpec:Class<T>

the requested format in which the key material shall be returned

Returns:KeySpec

the underlying key specification (key material) in the requested format

Exceptions
InvalidKeySpecException:
if the requested key specification is inappropriate for the given key (e.g., the algorithms associated with key and keySpec do not match, or key references a key on a cryptographic hardware device whereas keySpec is the specification of a software-based key), or the given key cannot be dealt with (e.g., the given key has an algorithm or format not supported by this secret-key factory).