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

pack-priv Class ProvPBEPBKDF2

extends AlgorithmProvider
Class Inheritance
Imports
java.io.IOException, java.security.spec.AlgorithmParameterSpec, .InvalidKeySpecException, .InvalidParameterSpecException, .KeySpec, javax.crypto.SecretKey, javax.crypto.spec.PBEKeySpec, .PBEParameterSpec, org.bouncycastle.asn1.ASN1Encoding, .ASN1ObjectIdentifier, .ASN1Primitive, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.pkcs.PBKDF2Params, .PKCSObjectIdentifiers, org.bouncycastle.crypto.Algorithm, .CryptoServicesRegistrar, .DigestAlgorithm, .PasswordBasedDeriver, .PasswordConverter, org.bouncycastle.crypto.fips.FipsAlgorithm, .FipsDigestAlgorithm, .FipsPBKD, .FipsSHS, org.bouncycastle.crypto.general.PBKD, .SecureHash, org.bouncycastle.jcajce.PBKDF2Key, org.bouncycastle.jcajce.spec.PBKDF2KeySpec, .PBKDF2ParameterSpec

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
private static String
private static DigestAlgorithm
pack-priv static byte[]
getSecretKey(SecretKey pbeKey, PBEParameterSpec pbeSpec, PasswordBasedDeriver.KeyType keyType, int keySizeInBits)

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

ProvPBEPBKDF2back to summary
pack-priv ProvPBEPBKDF2()

Method Detail

configureback to summary
public void configure(BouncyCastleFipsProvider provider)

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

convertToJCAback to summary
private static String convertToJCA(Algorithm algorithm)
getPrfAlgorithmback to summary
private static DigestAlgorithm getPrfAlgorithm(ASN1ObjectIdentifier algorithm) throws InvalidKeySpecException
getSecretKeyback to summary
pack-priv static byte[] getSecretKey(SecretKey pbeKey, PBEParameterSpec pbeSpec, PasswordBasedDeriver.KeyType keyType, int keySizeInBits)
org.bouncycastle.jcajce.provider back to summary

public Class ProvPBEPBKDF2.AlgParams

extends BaseAlgorithmParameters
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv PBKDF2Params

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
engineInit(AlgorithmParameterSpec
the parameter specification.
paramSpec
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Initializes this parameters object using the parameters specified in paramSpec.
protected String
engineToString()

Implements abstract java.security.AlgorithmParametersSpi.engineToString.

Returns a formatted string describing the parameters.
protected AlgorithmParameterSpec
protected byte[]
protected void
Inherited from org.bouncycastle.jcajce.provider.BaseAlgorithmParameters:
engineGetEncodedengineGetEncodedengineGetParameterSpecengineInitengineInitisASN1FormatString

Field Detail

paramsback to summary
pack-priv PBKDF2Params params

Constructor Detail

AlgParamsback to summary
public AlgParams()

Method Detail

engineInitback to summary
protected void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Initializes this parameters object using the parameters specified in paramSpec.

Parameters
paramSpec:AlgorithmParameterSpec

the parameter specification.

Exceptions
InvalidParameterSpecException:
if the given parameter specification is inappropriate for the initialization of this parameter object.
engineToStringback to summary
protected String engineToString()

Implements abstract java.security.AlgorithmParametersSpi.engineToString.

Doc from java.security.AlgorithmParametersSpi.engineToString.

Returns a formatted string describing the parameters.

Returns:String

a formatted string describing the parameters.

localEngineGetParameterSpecback to summary
protected AlgorithmParameterSpec localEngineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException

Implements abstract org.bouncycastle.jcajce.provider.BaseAlgorithmParameters.localEngineGetParameterSpec.

localGetEncodedback to summary
protected byte[] localGetEncoded() throws IOException

Implements abstract org.bouncycastle.jcajce.provider.BaseAlgorithmParameters.localGetEncoded.

localInitback to summary
protected void localInit(byte[] params) throws IOException

Implements abstract org.bouncycastle.jcajce.provider.BaseAlgorithmParameters.localInit.

org.bouncycastle.jcajce.provider back to summary

public Class ProvPBEPBKDF2.BasePBKDF2

extends BaseKDFSecretKeyFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
private final DigestAlgorithm
private final PasswordConverter

Constructor Summary

AccessConstructor and Description
public
BasePBKDF2(String algName, PasswordConverter passwordConverter)

public
BasePBKDF2(String algName, PasswordConverter passwordConverter, DigestAlgorithm defaultPrf)

Method Summary

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

Implements abstract javax.crypto.SecretKeyFactorySpi.engineGenerateSecret.

Generates a SecretKey object from the provided key specification (key material).
Inherited from org.bouncycastle.jcajce.provider.BaseKDFSecretKeyFactory:
engineGetKeySpecengineTranslateKey

Field Detail

algNameback to summary
private final String algName
defaultPrfback to summary
private final DigestAlgorithm defaultPrf
passwordConverterback to summary
private final PasswordConverter passwordConverter

Constructor Detail

BasePBKDF2back to summary
public BasePBKDF2(String algName, PasswordConverter passwordConverter)
BasePBKDF2back to summary
public BasePBKDF2(String algName, PasswordConverter passwordConverter, DigestAlgorithm defaultPrf)

Method Detail

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

Implements abstract javax.crypto.SecretKeyFactorySpi.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.