| Modifier and Type | Class and Description |
|---|---|
| public static class | KEMExtractSpec.
Builder class for creating a KEMExtractSpec. |
| Modifier and Type | Field and Description |
|---|---|
| private static AlgorithmIdentifier | |
| private static final byte[] | |
| private final byte[] | |
| private final PrivateKey |
| Access | Constructor and Description |
|---|---|
| private | KEMExtractSpec(PrivateKey privateKey, byte[] encapsulation, String keyAlgorithmName, int keySizeInBits, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo)
|
| public | |
| public | KEMExtractSpec(PrivateKey privateKey, byte[] encapsulation, String keyAlgorithmName, int keySizeInBits)
|
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public PrivateKey |
| DefKdf | back to summary |
|---|---|
| private static AlgorithmIdentifier DefKdf | |
| EMPTY_OTHER_INFO | back to summary |
|---|---|
| private static final byte[] EMPTY_OTHER_INFO | |
| encapsulation | back to summary |
|---|---|
| private final byte[] encapsulation | |
| privateKey | back to summary |
|---|---|
| private final PrivateKey privateKey | |
| KEMExtractSpec | back to summary |
|---|---|
| private KEMExtractSpec(PrivateKey privateKey, byte[] encapsulation, String keyAlgorithmName, int keySizeInBits, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo) | |
| KEMExtractSpec | back to summary |
|---|---|
| public KEMExtractSpec(PrivateKey privateKey, byte[] encapsulation, String keyAlgorithmName) | |
| KEMExtractSpec | back to summary |
|---|---|
| public KEMExtractSpec(PrivateKey privateKey, byte[] encapsulation, String keyAlgorithmName, int keySizeInBits) | |
| getEncapsulation | back to summary |
|---|---|
| public byte[] getEncapsulation() | |
| getPrivateKey | back to summary |
|---|---|
| public PrivateKey getPrivateKey() | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final byte[] | |
| private AlgorithmIdentifier | |
| private final int | |
| private byte[] | |
| private final PrivateKey |
| Access | Constructor and Description |
|---|---|
| public | Builder(PrivateKey
the private key to use for the secret extraction. privateKey, byte[] the encapsulation to process. encapsulation, String the algorithm name for the secret key we want to generate. keyAlgorithmName, int the size of the wrapping key we want to produce in bits. keySizeInBits)Basic builder. |
| Modifier and Type | Method and Description |
|---|---|
| public KEMExtractSpec | Returns: a new parameter spec configured according to the builder state.Build the new parameter spec. |
| public KEMExtractSpec. | Returns: the current Builder instance.the KDF algorithm to apply. kdfAlgorithm)Set the KDF algorithm and digest algorithm for wrap key generation. |
| public KEMExtractSpec. | Returns: the current Builder instance.Use the shared secret directly for key wrap generation. |
| public KEMExtractSpec. | Returns: the current Builder instance.the other info to use. otherInfo)Set the OtherInfo to use with the KDF. |
| algorithmName | back to summary |
|---|---|
| private final String algorithmName | |
| encapsulation | back to summary |
|---|---|
| private final byte[] encapsulation | |
| kdfAlgorithm | back to summary |
|---|---|
| private AlgorithmIdentifier kdfAlgorithm | |
| keySizeInBits | back to summary |
|---|---|
| private final int keySizeInBits | |
| otherInfo | back to summary |
|---|---|
| private byte[] otherInfo | |
| privateKey | back to summary |
|---|---|
| private final PrivateKey privateKey | |
| Builder | back to summary |
|---|---|
| public Builder(PrivateKey privateKey, byte[] encapsulation, String keyAlgorithmName, int keySizeInBits) Basic builder.
| |
| build | back to summary |
|---|---|
| public KEMExtractSpec build() Build the new parameter spec.
| |
| withKdfAlgorithm | back to summary |
|---|---|
| public KEMExtractSpec. Set the KDF algorithm and digest algorithm for wrap key generation. The default KDF is X9.44 KDF-3, also known as the NIST concatenation KDF.
| |
| withNoKdf | back to summary |
|---|---|
| public KEMExtractSpec. Use the shared secret directly for key wrap generation.
| |
| withOtherInfo | back to summary |
|---|---|
| public KEMExtractSpec. Set the OtherInfo to use with the KDF. The default OtherInfo is a zero length byte[].
| |