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

pack-priv Class ProvPBEPBKDF1

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, org.bouncycastle.asn1.pkcs.PBEParameter, org.bouncycastle.crypto.DigestAlgorithm, .PasswordBasedDeriver, .PasswordConverter, org.bouncycastle.crypto.general.PBKD, org.bouncycastle.jcajce.PBKDF1Key

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
pack-priv static byte[]
getSecretKey(SecretKey pbeKey, PBEParameterSpec pbeSpec, DigestAlgorithm prf, PasswordBasedDeriver.KeyType keyType, int keySizeInBits)

pack-priv static byte[][]
getSecretKeyAndIV(SecretKey pbeKey, PBEParameterSpec pbeSpec, DigestAlgorithm prf, PasswordBasedDeriver.KeyType keyType, int keySizeInBits, int ivvSizeInBits)

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

ProvPBEPBKDF1back to summary
pack-priv ProvPBEPBKDF1()

Method Detail

configureback to summary
public void configure(BouncyCastleFipsProvider provider)

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

getSecretKeyback to summary
pack-priv static byte[] getSecretKey(SecretKey pbeKey, PBEParameterSpec pbeSpec, DigestAlgorithm prf, PasswordBasedDeriver.KeyType keyType, int keySizeInBits)
getSecretKeyAndIVback to summary
pack-priv static byte[][] getSecretKeyAndIV(SecretKey pbeKey, PBEParameterSpec pbeSpec, DigestAlgorithm prf, PasswordBasedDeriver.KeyType keyType, int keySizeInBits, int ivvSizeInBits)
org.bouncycastle.jcajce.provider back to summary

public Class ProvPBEPBKDF1.AlgParams

extends BaseAlgorithmParameters
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv PBEParameter

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 PBEParameter 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 ProvPBEPBKDF1.FixedPBKDF1

extends BaseKDFSecretKeyFactory
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
FixedPBKDF1(String algorithm, PasswordConverter passwordConverter, DigestAlgorithm prfAlg, int keySizeInBits)

Method Summary

Modifier and TypeMethod and Description
protected 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

algorithmback to summary
private final String algorithm
keySizeInBitsback to summary
private final int keySizeInBits
passwordConverterback to summary
private final PasswordConverter passwordConverter
prfAlgback to summary
private final DigestAlgorithm prfAlg

Constructor Detail

FixedPBKDF1back to summary
public FixedPBKDF1(String algorithm, PasswordConverter passwordConverter, DigestAlgorithm prfAlg, int keySizeInBits)

Method Detail

engineGenerateSecretback to summary
protected 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.