Top Description Fields Constructors Methods
org.bouncycastle.jcajce.spec

public Class KTSWithKEMKWSKeySpec

extends Object
implements KeySpec
Class Inheritance
All Implemented Interfaces
java.security.spec.KeySpec
Imports
java.security.spec.KeySpec

KeySpec for use with the RSA-KTS-KEM-KWS SecretKeyFactory. The spec can be used to create a secret key with an encapsulation using the RSA-KEM-KWS format described in SP 800-56B,

Field Summary

Modifier and TypeField and Description
private final KTSKeySpec
private final String
private final int

Constructor Summary

AccessConstructor and Description
public
KTSWithKEMKWSKeySpec(KTSKeySpec
the spec for the KTS step which generates the wrapping key and the optional MAC key.
ktsKeySpec
,
String
secret key algorithm for created secret key
transportedKeyAlgorithm
,
int
secret key key size in bits for transported key.
transportedKeySizeInBits
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public KTSKeySpec

Returns:

the base KTS spec.
getKTSKeySpec
()

Return the base spec for the KTS step.

public String

Returns:

transported key algorithm name.
getTransportedKeyAlgorithm
()

Return the algorithm name for the transported key.

public int

Returns:

the key size (in bits) of the transported key.
getTransportedKeySize
()

Return the key size (in bits) of the transported key.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ktsKeySpecback to summary
private final KTSKeySpec ktsKeySpec
transportedKeyAlgorithmback to summary
private final String transportedKeyAlgorithm
transportedKeySizeInBitsback to summary
private final int transportedKeySizeInBits

Constructor Detail

KTSWithKEMKWSKeySpecback to summary
public KTSWithKEMKWSKeySpec(KTSKeySpec ktsKeySpec, String transportedKeyAlgorithm, int transportedKeySizeInBits)

Base constructor.

Parameters
ktsKeySpec:KTSKeySpec

the spec for the KTS step which generates the wrapping key and the optional MAC key.

transportedKeyAlgorithm:String

secret key algorithm for created secret key

transportedKeySizeInBits:int

secret key key size in bits for transported key.

Method Detail

getKTSKeySpecback to summary
public KTSKeySpec getKTSKeySpec()

Return the base spec for the KTS step.

Returns:KTSKeySpec

the base KTS spec.

getTransportedKeyAlgorithmback to summary
public String getTransportedKeyAlgorithm()

Return the algorithm name for the transported key.

Returns:String

transported key algorithm name.

getTransportedKeySizeback to summary
public int getTransportedKeySize()

Return the key size (in bits) of the transported key.

Returns:int

the key size (in bits) of the transported key.