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

pack-priv Class ProvSunTLSKDF

extends AsymmetricAlgorithmProvider
Class Inheritance
Imports
java.lang.reflect.Constructor, java.security.AccessController, .InvalidAlgorithmParameterException, .InvalidParameterException, .PrivilegedAction, .SecureRandom, java.security.spec.AlgorithmParameterSpec, javax.crypto.KeyGeneratorSpi, .SecretKey, javax.crypto.spec.IvParameterSpec, .SecretKeySpec, org.bouncycastle.crypto.KDFCalculator, org.bouncycastle.crypto.fips.FipsKDF, .FipsKDF.TLSPRF, org.bouncycastle.util.Arrays, sun.security.internal.spec.TlsKeyMaterialParameterSpec, .TlsKeyMaterialSpec, .TlsMasterSecretParameterSpec, .TlsPrfParameterSpec, .TlsRsaPremasterSecretParameterSpec

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final boolean
private static final boolean
private static final String
private static final String
private static final String
private static final Constructor<T>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
private static TlsPrfParameterSpec
createPrfParameterSpec(SecretKey secret, String label, byte[] seed, int outputLength, String prfHashAlg, int prfHashLength, int prfBlockSize)

Deprecated as a consequence of TlsPrfParameterSpec being deprecated.
private static FipsKDF.TLSPRF
Inherited from org.bouncycastle.jcajce.provider.AsymmetricAlgorithmProvider:
addKeyAgreementAlgorithmaddSignatureAlgorithmaddSignatureAlgorithmregisterOidregisterOidAlgorithmParameters

Field Detail

hasGetEncodeSecretMethodback to summary
private static final boolean hasGetEncodeSecretMethod
hasPrfMethodsback to summary
private static final boolean hasPrfMethods
KDF_PACKAGEback to summary
private static final String KDF_PACKAGE
PROVIDER_PACKAGEback to summary
private static final String PROVIDER_PACKAGE
SYMMETRIC_PACKAGEback to summary
private static final String SYMMETRIC_PACKAGE
tlsPrfParameterSpecConstructorback to summary
private static final Constructor<T> tlsPrfParameterSpecConstructor

Constructor Detail

ProvSunTLSKDFback to summary
pack-priv ProvSunTLSKDF()

Method Detail

configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

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

createPrfParameterSpecback to summary
private static TlsPrfParameterSpec createPrfParameterSpec(SecretKey secret, String label, byte[] seed, int outputLength, String prfHashAlg, int prfHashLength, int prfBlockSize)

Deprecated

as a consequence of TlsPrfParameterSpec being deprecated. See corresponding docs for further information.

getPRFback to summary
private static FipsKDF.TLSPRF getPRF(String alg)
org.bouncycastle.jcajce.provider back to summary

pack-priv abstract Class ProvSunTLSKDF.BaseTLSKeyGeneratorSpi

extends KeyGeneratorSpi
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jcajce.provider.ProvSunTLSKDF.TLSRsaPreMasterSecretGenerator, org.bouncycastle.jcajce.provider.ProvSunTLSKDF.TLSMasterSecretGenerator, org.bouncycastle.jcajce.provider.ProvSunTLSKDF.TLSExtendedMasterSecretGenerator, org.bouncycastle.jcajce.provider.ProvSunTLSKDF.TLSKeyMaterialGenerator, org.bouncycastle.jcajce.provider.ProvSunTLSKDF.TLSPRFKeyGenerator

Field Summary

Modifier and TypeField and Description
protected SecureRandom

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected SecretKey
calculatePRF(TlsPrfParameterSpec spec, String keyAlg)

Deprecated as a consequence of TlsPrfParameterSpec being deprecated.
protected void
engineInit(SecureRandom
the source of randomness for this generator
secureRandom
)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator.
protected void
engineInit(int
the keysize. This is an algorithm-specific metric, specified in number of bits.
keySize
,
SecureRandom
the source of randomness for this key generator
secureRandom
)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Initializes this key generator for a certain keysize, using the given source of randomness.
Inherited from javax.crypto.KeyGeneratorSpi:
engineGenerateKeyengineInit

Field Detail

secureRandomback to summary
protected SecureRandom secureRandom

Constructor Detail

BaseTLSKeyGeneratorSpiback to summary
pack-priv BaseTLSKeyGeneratorSpi()

Method Detail

calculatePRFback to summary
protected SecretKey calculatePRF(TlsPrfParameterSpec spec, String keyAlg)

Deprecated

as a consequence of TlsPrfParameterSpec being deprecated. See corresponding docs for further information.

engineInitback to summary
protected void engineInit(SecureRandom secureRandom)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator.

Parameters
secureRandom:SecureRandom

the source of randomness for this generator

Annotations
@Override
engineInitback to summary
protected void engineInit(int keySize, SecureRandom secureRandom)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes this key generator for a certain keysize, using the given source of randomness.

Parameters
keySize:int

the keysize. This is an algorithm-specific metric, specified in number of bits.

secureRandom:SecureRandom

the source of randomness for this key generator

Annotations
@Override
org.bouncycastle.jcajce.provider back to summary

pack-priv final Class ProvSunTLSKDF.TLSExtendedMasterSecretGenerator

extends BaseTLSKeyGeneratorSpi
Class Inheritance

Field Summary

Modifier and TypeField and Description
private TlsMasterSecretParameterSpec
spec

Deprecated as a consequence of TlsMasterSecretParameterSpec being deprecated.
Inherited from org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi:
secureRandom

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected SecretKey
engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.
protected void
engineInit(SecureRandom
the source of randomness for this generator
secureRandom
)

Overrides org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi.engineInit.

Initializes the key generator.
protected void
engineInit(int
the keysize. This is an algorithm-specific metric, specified in number of bits.
keySize
,
SecureRandom
the source of randomness for this key generator
secureRandom
)

Overrides org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi.engineInit.

Initializes this key generator for a certain keysize, using the given source of randomness.
protected void
engineInit(final AlgorithmParameterSpec
the key generation parameters
algorithmParameterSpec
,
final SecureRandom
the source of randomness for this key generator
secureRandom
)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator with the specified parameter set and a user-provided source of randomness.
Inherited from org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi:
calculatePRF

Field Detail

specback to summary
private TlsMasterSecretParameterSpec spec

Deprecated

as a consequence of TlsMasterSecretParameterSpec being deprecated. See corresponding docs for further information.

Constructor Detail

TLSExtendedMasterSecretGeneratorback to summary
pack-priv TLSExtendedMasterSecretGenerator()

Method Detail

engineGenerateKeyback to summary
protected SecretKey engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Doc from javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.

Returns:SecretKey

the new key

Annotations
@Override
engineInitback to summary
protected void engineInit(SecureRandom secureRandom)

Overrides org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator.

Parameters
secureRandom:SecureRandom

the source of randomness for this generator

Annotations
@Override
engineInitback to summary
protected void engineInit(int keySize, SecureRandom secureRandom)

Overrides org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes this key generator for a certain keysize, using the given source of randomness.

Parameters
keySize:int

the keysize. This is an algorithm-specific metric, specified in number of bits.

secureRandom:SecureRandom

the source of randomness for this key generator

Annotations
@Override
engineInitback to summary
protected void engineInit(final AlgorithmParameterSpec algorithmParameterSpec, final SecureRandom secureRandom) throws InvalidAlgorithmParameterException

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator with the specified parameter set and a user-provided source of randomness.

Parameters
algorithmParameterSpec:AlgorithmParameterSpec

the key generation parameters

secureRandom:SecureRandom

the source of randomness for this key generator

Annotations
@Override
Exceptions
InvalidAlgorithmParameterException:
if params is inappropriate for this key generator
org.bouncycastle.jcajce.provider back to summary

pack-priv final Class ProvSunTLSKDF.TLSKeyMaterialGenerator

extends BaseTLSKeyGeneratorSpi
Class Inheritance

Field Summary

Modifier and TypeField and Description
private TlsKeyMaterialParameterSpec
spec

Deprecated as a consequence of TlsKeyMaterialParameterSpec being deprecated.
Inherited from org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi:
secureRandom

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected SecretKey
engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.
protected void
engineInit(final AlgorithmParameterSpec
the key generation parameters
algorithmParameterSpec
,
final SecureRandom
the source of randomness for this key generator
secureRandom
)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator with the specified parameter set and a user-provided source of randomness.
Inherited from org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi:
calculatePRFengineInitengineInit

Field Detail

specback to summary
private TlsKeyMaterialParameterSpec spec

Deprecated

as a consequence of TlsKeyMaterialParameterSpec being deprecated. See corresponding docs for further information.

Constructor Detail

TLSKeyMaterialGeneratorback to summary
pack-priv TLSKeyMaterialGenerator()

Method Detail

engineGenerateKeyback to summary
protected SecretKey engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Doc from javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.

Returns:SecretKey

the new key

Annotations
@Override
engineInitback to summary
protected void engineInit(final AlgorithmParameterSpec algorithmParameterSpec, final SecureRandom secureRandom) throws InvalidAlgorithmParameterException

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator with the specified parameter set and a user-provided source of randomness.

Parameters
algorithmParameterSpec:AlgorithmParameterSpec

the key generation parameters

secureRandom:SecureRandom

the source of randomness for this key generator

Annotations
@Override
Exceptions
InvalidAlgorithmParameterException:
if params is inappropriate for this key generator
org.bouncycastle.jcajce.provider back to summary

pack-priv final Class ProvSunTLSKDF.TLSMasterSecretGenerator

extends BaseTLSKeyGeneratorSpi
Class Inheritance

Field Summary

Modifier and TypeField and Description
private TlsMasterSecretParameterSpec
spec

Deprecated as a consequence of TlsMasterSecretParameterSpec being deprecated.
Inherited from org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi:
secureRandom

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected SecretKey
engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.
protected void
engineInit(final AlgorithmParameterSpec
the key generation parameters
algorithmParameterSpec
,
final SecureRandom
the source of randomness for this key generator
secureRandom
)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator with the specified parameter set and a user-provided source of randomness.
Inherited from org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi:
calculatePRFengineInitengineInit

Field Detail

specback to summary
private TlsMasterSecretParameterSpec spec

Deprecated

as a consequence of TlsMasterSecretParameterSpec being deprecated. See corresponding docs for further information.

Constructor Detail

TLSMasterSecretGeneratorback to summary
pack-priv TLSMasterSecretGenerator()

Method Detail

engineGenerateKeyback to summary
protected SecretKey engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Doc from javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.

Returns:SecretKey

the new key

Annotations
@Override
engineInitback to summary
protected void engineInit(final AlgorithmParameterSpec algorithmParameterSpec, final SecureRandom secureRandom) throws InvalidAlgorithmParameterException

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator with the specified parameter set and a user-provided source of randomness.

Parameters
algorithmParameterSpec:AlgorithmParameterSpec

the key generation parameters

secureRandom:SecureRandom

the source of randomness for this key generator

Annotations
@Override
Exceptions
InvalidAlgorithmParameterException:
if params is inappropriate for this key generator
org.bouncycastle.jcajce.provider back to summary

pack-priv final Class ProvSunTLSKDF.TLSPRFKeyGenerator

extends BaseTLSKeyGeneratorSpi
Class Inheritance

Field Summary

Modifier and TypeField and Description
private TlsPrfParameterSpec
spec

Deprecated as a consequence of TlsPrfParameterSpec being deprecated.
Inherited from org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi:
secureRandom

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected SecretKey
engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.
protected void
engineInit(final AlgorithmParameterSpec
the key generation parameters
algorithmParameterSpec
,
final SecureRandom
the source of randomness for this key generator
secureRandom
)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator with the specified parameter set and a user-provided source of randomness.
Inherited from org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi:
calculatePRFengineInitengineInit

Field Detail

specback to summary
private TlsPrfParameterSpec spec

Deprecated

as a consequence of TlsPrfParameterSpec being deprecated. See corresponding docs for further information.

Constructor Detail

TLSPRFKeyGeneratorback to summary
pack-priv TLSPRFKeyGenerator()

Method Detail

engineGenerateKeyback to summary
protected SecretKey engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Doc from javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.

Returns:SecretKey

the new key

Annotations
@Override
engineInitback to summary
protected void engineInit(final AlgorithmParameterSpec algorithmParameterSpec, final SecureRandom secureRandom) throws InvalidAlgorithmParameterException

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator with the specified parameter set and a user-provided source of randomness.

Parameters
algorithmParameterSpec:AlgorithmParameterSpec

the key generation parameters

secureRandom:SecureRandom

the source of randomness for this key generator

Annotations
@Override
Exceptions
InvalidAlgorithmParameterException:
if params is inappropriate for this key generator
org.bouncycastle.jcajce.provider back to summary

pack-priv final Class ProvSunTLSKDF.TLSRsaPreMasterSecretGenerator

extends BaseTLSKeyGeneratorSpi
Class Inheritance

Field Summary

Modifier and TypeField and Description
private TlsRsaPremasterSecretParameterSpec
spec

Deprecated as a consequence of TlsRsaPremasterSecretParameterSpec being deprecated.
Inherited from org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi:
secureRandom

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected SecretKey
engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.
protected void
engineInit(final AlgorithmParameterSpec
the key generation parameters
algorithmParameterSpec
,
final SecureRandom
the source of randomness for this key generator
secureRandom
)

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator with the specified parameter set and a user-provided source of randomness.
Inherited from org.bouncycastle.jcajce.provider.ProvSunTLSKDF.BaseTLSKeyGeneratorSpi:
calculatePRFengineInitengineInit

Field Detail

specback to summary
private TlsRsaPremasterSecretParameterSpec spec

Deprecated

as a consequence of TlsRsaPremasterSecretParameterSpec being deprecated. See corresponding docs for further information.

Constructor Detail

TLSRsaPreMasterSecretGeneratorback to summary
pack-priv TLSRsaPreMasterSecretGenerator()

Method Detail

engineGenerateKeyback to summary
protected SecretKey engineGenerateKey()

Implements abstract javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Doc from javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.

Returns:SecretKey

the new key

Annotations
@Override
engineInitback to summary
protected void engineInit(final AlgorithmParameterSpec algorithmParameterSpec, final SecureRandom secureRandom) throws InvalidAlgorithmParameterException

Implements abstract javax.crypto.KeyGeneratorSpi.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes the key generator with the specified parameter set and a user-provided source of randomness.

Parameters
algorithmParameterSpec:AlgorithmParameterSpec

the key generation parameters

secureRandom:SecureRandom

the source of randomness for this key generator

Annotations
@Override
Exceptions
InvalidAlgorithmParameterException:
if params is inappropriate for this key generator