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

public Class PBEPBKDF2

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.spec.AlgorithmParameterSpec, .InvalidKeySpecException, .InvalidParameterSpecException, .KeySpec, java.util.HashMap, .Map, javax.crypto.SecretKey, javax.crypto.spec.PBEKeySpec, .PBEParameterSpec, org.bouncycastle.asn1.ASN1Encoding, .ASN1ObjectIdentifier, .ASN1Primitive, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.gm.GMObjectIdentifiers, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.pkcs.PBKDF2Params, .PKCSObjectIdentifiers, org.bouncycastle.crypto.CipherParameters, .PasswordConverter, org.bouncycastle.jcajce.PBKDF2Key, org.bouncycastle.jcajce.provider.config.ConfigurableProvider, org.bouncycastle.jcajce.provider.symmetric.util.BCPBEKey, .BaseAlgorithmParameters, .BaseSecretKeyFactory, .PBE, org.bouncycastle.jcajce.provider.util.AlgorithmProvider, org.bouncycastle.jcajce.spec.PBKDF2KeySpec, org.bouncycastle.util.Integers

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class
public static class

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

prfCodesback to summary
private static final Map<K, V> prfCodes

Constructor Detail

PBEPBKDF2back to summary
private PBEPBKDF2()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.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 byte[]
engineGetEncoded()

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters in their primary encoding format.

protected byte[]
engineGetEncoded(String
the name of the encoding format.
format
)

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters encoded in the specified format.

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 void
engineInit(byte[]
the encoded parameters.
params
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Imports the specified parameters and decodes them according to the primary decoding format for parameters.

protected void
engineInit(byte[]
the encoded parameters.
params
,
String
the name of the decoding format.
format
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Imports the parameters from params and decodes them according to the specified decoding format.

protected String
engineToString()

Implements abstract java.security.AlgorithmParametersSpi.engineToString.

Returns a formatted string describing the parameters.

protected AlgorithmParameterSpec
Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameters:
engineGetParameterSpecisASN1FormatString

Field Detail

paramsback to summary
pack-priv PBKDF2Params params

Constructor Detail

AlgParamsback to summary
public AlgParams()

Method Detail

engineGetEncodedback to summary
protected byte[] engineGetEncoded()

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Doc from java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters in their primary encoding format. The primary encoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

Returns:byte[]

the parameters encoded using their primary encoding format.

engineGetEncodedback to summary
protected byte[] engineGetEncoded(String format)

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Doc from java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters encoded in the specified format. If format is null, the primary encoding format for parameters is used. The primary encoding format is ASN.1, if an ASN.1 specification for these parameters exists.

Parameters
format:String

the name of the encoding format.

Returns:byte[]

the parameters encoded using the specified encoding scheme.

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.
engineInitback to summary
protected void engineInit(byte[] params) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Imports the specified parameters and decodes them according to the primary decoding format for parameters. The primary decoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

Parameters
params:byte[]

the encoded parameters.

Exceptions
IOException:
on decoding errors
engineInitback to summary
protected void engineInit(byte[] params, String format) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Imports the parameters from params and decodes them according to the specified decoding format. If format is null, the primary decoding format for parameters is used. The primary decoding format is ASN.1, if an ASN.1 specification for these parameters exists.

Parameters
params:byte[]

the encoded parameters.

format:String

the name of the decoding format.

Exceptions
IOException:
on decoding errors
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.symmetric.util.BaseAlgorithmParameters.localEngineGetParameterSpec.

org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.BasePBKDF2

extends BaseSecretKeyFactory
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withUTF8, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withSHA224, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withSHA256, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withSHA384, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withSHA512, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withGOST3411, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withSHA3_224, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withSHA3_256, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withSHA3_384, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withSHA3_512, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2with8BIT, org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.PBKDF2withSM3

Field Summary

Modifier and TypeField and Description
private int
private int
Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory:
algNamealgOid

Constructor Summary

AccessConstructor and Description
public
BasePBKDF2(String name, int scheme)

public
BasePBKDF2(String name, int scheme, int defaultDigest)

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.symmetric.util.BaseSecretKeyFactory.engineGenerateSecret.

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

private int
Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory:
engineGetKeySpecengineTranslateKey

Field Detail

defaultDigestback to summary
private int defaultDigest
schemeback to summary
private int scheme

Constructor Detail

BasePBKDF2back to summary
public BasePBKDF2(String name, int scheme)
BasePBKDF2back to summary
public BasePBKDF2(String name, int scheme, int defaultDigest)

Method Detail

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

Overrides org.bouncycastle.jcajce.provider.symmetric.util.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.
getDigestCodeback to summary
private int getDigestCode(ASN1ObjectIdentifier algorithm) throws InvalidKeySpecException
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.Mappings

extends AlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

Mappingsback to summary
public Mappings()

Method Detail

configureback to summary
public void configure(ConfigurableProvider provider)

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

org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2with8BIT

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2with8BITback to summary
public PBKDF2with8BIT()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withGOST3411

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withGOST3411back to summary
public PBKDF2withGOST3411()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withSHA224

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withSHA224back to summary
public PBKDF2withSHA224()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withSHA256

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withSHA256back to summary
public PBKDF2withSHA256()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withSHA384

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withSHA384back to summary
public PBKDF2withSHA384()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withSHA3_224

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withSHA3_224back to summary
public PBKDF2withSHA3_224()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withSHA3_256

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withSHA3_256back to summary
public PBKDF2withSHA3_256()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withSHA3_384

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withSHA3_384back to summary
public PBKDF2withSHA3_384()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withSHA3_512

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withSHA3_512back to summary
public PBKDF2withSHA3_512()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withSHA512

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withSHA512back to summary
public PBKDF2withSHA512()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withSM3

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withSM3back to summary
public PBKDF2withSM3()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class PBEPBKDF2.PBKDF2withUTF8

extends BasePBKDF2
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2.BasePBKDF2:
engineGenerateSecret

Constructor Detail

PBKDF2withUTF8back to summary
public PBKDF2withUTF8()