| Modifier and Type | Class and Description |
|---|---|
| public static class | KEMGenerateSpec.
Builder class for creating a KEMGenerateSpec. |
| Modifier and Type | Field and Description |
|---|---|
| private static AlgorithmIdentifier | |
| private static final byte[] | |
| private final PublicKey |
| Access | Constructor and Description |
|---|---|
| private | KEMGenerateSpec(PublicKey publicKey, String keyAlgorithmName, int keySizeInBits, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo)
|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PublicKey |
| DefKdf | back to summary |
|---|---|
| private static AlgorithmIdentifier DefKdf | |
| EMPTY_OTHER_INFO | back to summary |
|---|---|
| private static final byte[] EMPTY_OTHER_INFO | |
| publicKey | back to summary |
|---|---|
| private final PublicKey publicKey | |
| KEMGenerateSpec | back to summary |
|---|---|
| private KEMGenerateSpec(PublicKey publicKey, String keyAlgorithmName, int keySizeInBits, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo) | |
| KEMGenerateSpec | back to summary |
|---|---|
| public KEMGenerateSpec(PublicKey publicKey, String keyAlgorithmName) | |
| KEMGenerateSpec | back to summary |
|---|---|
| public KEMGenerateSpec(PublicKey publicKey, String keyAlgorithmName, int keySizeInBits) | |
| getPublicKey | back to summary |
|---|---|
| public PublicKey getPublicKey() | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private AlgorithmIdentifier | |
| private final int | |
| private byte[] | |
| private final PublicKey |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public KEMGenerateSpec | Returns: a new parameter spec configured according to the builder state.Build the new parameter spec. |
| public KEMGenerateSpec. | Returns: the current Builder instance.the KDF algorithm to apply. kdfAlgorithm)Set the KDF algorithm and digest algorithm for wrap key generation. |
| public KEMGenerateSpec. | Returns: the current Builder instance.Use the shared secret directly for key wrap generation. |
| public KEMGenerateSpec. | 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 | |
| kdfAlgorithm | back to summary |
|---|---|
| private AlgorithmIdentifier kdfAlgorithm | |
| keySizeInBits | back to summary |
|---|---|
| private final int keySizeInBits | |
| otherInfo | back to summary |
|---|---|
| private byte[] otherInfo | |
| publicKey | back to summary |
|---|---|
| private final PublicKey publicKey | |
| Builder | back to summary |
|---|---|
| public Builder(PublicKey publicKey, String keyAlgorithmName, int keySizeInBits) Basic builder. | |
| build | back to summary |
|---|---|
| public KEMGenerateSpec build() Build the new parameter spec.
| |
| withKdfAlgorithm | back to summary |
|---|---|
| public KEMGenerateSpec. 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 KEMGenerateSpec. Use the shared secret directly for key wrap generation.
| |
| withOtherInfo | back to summary |
|---|---|
| public KEMGenerateSpec. Set the OtherInfo to use with the KDF. The default OtherInfo is a zero length byte[].
| |