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

public Class TLSKDF

extends Object
Class Inheritance
Imports
java.security.spec.InvalidKeySpecException, .KeySpec, javax.crypto.SecretKey, javax.crypto.spec.SecretKeySpec, org.bouncycastle.crypto.Mac, org.bouncycastle.crypto.digests.SHA256Digest, .SHA384Digest, .SHA512Digest, org.bouncycastle.crypto.macs.HMac, org.bouncycastle.crypto.params.KeyParameter, org.bouncycastle.crypto.util.DigestFactory, org.bouncycastle.jcajce.provider.config.ConfigurableProvider, org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory, org.bouncycastle.jcajce.provider.util.AlgorithmProvider, org.bouncycastle.jcajce.spec.TLSKeyMaterialSpec, org.bouncycastle.util.Arrays, .Strings

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
hmac_hash(Mac mac, byte[] secret, byte[] seed, byte[] out)

private static byte[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TLSKDFback to summary
public TLSKDF()

Method Detail

hmac_hashback to summary
private static void hmac_hash(Mac mac, byte[] secret, byte[] seed, byte[] out)
PRF_legacyback to summary
private static byte[] PRF_legacy(TLSKeyMaterialSpec parameters)
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class TLSKDF.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 final Class TLSKDF.TLS10

extends TLSKeyMaterialFactory
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

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).

Constructor Detail

TLS10back to summary
public TLS10()

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.
org.bouncycastle.jcajce.provider.symmetric back to summary

public final Class TLSKDF.TLS11

extends TLSKeyMaterialFactory
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

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).

Constructor Detail

TLS11back to summary
public TLS11()

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.
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class TLSKDF.TLS12

extends TLSKeyMaterialFactory
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jcajce.provider.symmetric.TLSKDF.TLS12withSHA256, org.bouncycastle.jcajce.provider.symmetric.TLSKDF.TLS12withSHA384, org.bouncycastle.jcajce.provider.symmetric.TLSKDF.TLS12withSHA512

Field Summary

Modifier and TypeField and Description
private final Mac

Constructor Summary

AccessConstructor and Description
protected
TLS12(String algName, Mac prf)

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 byte[]
PRF(TLSKeyMaterialSpec parameters, Mac prf)

Field Detail

prfback to summary
private final Mac prf

Constructor Detail

TLS12back to summary
protected TLS12(String algName, Mac prf)

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.
PRFback to summary
private byte[] PRF(TLSKeyMaterialSpec parameters, Mac prf)
org.bouncycastle.jcajce.provider.symmetric back to summary

public final Class TLSKDF.TLS12withSHA256

extends TLS12
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.TLSKDF.TLS12:
engineGenerateSecret

Constructor Detail

TLS12withSHA256back to summary
public TLS12withSHA256()
org.bouncycastle.jcajce.provider.symmetric back to summary

public final Class TLSKDF.TLS12withSHA384

extends TLS12
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.TLSKDF.TLS12:
engineGenerateSecret

Constructor Detail

TLS12withSHA384back to summary
public TLS12withSHA384()
org.bouncycastle.jcajce.provider.symmetric back to summary

public final Class TLSKDF.TLS12withSHA512

extends TLS12
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.TLSKDF.TLS12:
engineGenerateSecret

Constructor Detail

TLS12withSHA512back to summary
public TLS12withSHA512()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class TLSKDF.TLSKeyMaterialFactory

extends BaseSecretKeyFactory
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jcajce.provider.symmetric.TLSKDF.TLS10, org.bouncycastle.jcajce.provider.symmetric.TLSKDF.TLS11, org.bouncycastle.jcajce.provider.symmetric.TLSKDF.TLS12

Field Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory:
algNamealgOid

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory:
engineGenerateSecretengineGetKeySpecengineTranslateKey

Constructor Detail

TLSKeyMaterialFactoryback to summary
protected TLSKeyMaterialFactory(String algName)