Package org.bouncycastle.jcajce.spec
Class KTSParameterSpec
java.lang.Object
org.bouncycastle.jcajce.spec.KTSParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
Parameter spec for doing KTS based wrapping via the Cipher API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builder class for creating a KTSParameterSpec. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FipsKDF.AgreementKDFParametersBuilder
static final FipsKDF.AgreementKDFParametersBuilder
-
Method Summary
Modifier and TypeMethodDescriptionReturn the AlgorithmIdentifier for the KDF to do key derivation after extracting the secret.Return the name of the algorithm for the wrapping key this key spec should use.int
Return the size of the key (in bits) for the wrapping key this key spec should use.byte[]
Return the otherInfo data for initialising the KDF.Return the algorithm parameter spec to be applied with the private key when the encapsulation is decrypted.
-
Field Details
-
KDF2
-
KDF3
-
-
Method Details
-
getKeyAlgorithmName
Return the name of the algorithm for the wrapping key this key spec should use.- Returns:
- the key algorithm.
-
getKeySize
public int getKeySize()Return the size of the key (in bits) for the wrapping key this key spec should use.- Returns:
- length in bits of the key to be calculated.
-
getParameterSpec
Return the algorithm parameter spec to be applied with the private key when the encapsulation is decrypted.- Returns:
- the algorithm parameter spec to be used with the private key.
-
getKdfAlgorithm
Return the AlgorithmIdentifier for the KDF to do key derivation after extracting the secret.- Returns:
- the AlgorithmIdentifier for the SecretKeyFactory's KDF.
-
getOtherInfo
public byte[] getOtherInfo()Return the otherInfo data for initialising the KDF.- Returns:
- the otherInfo data.
-