public class KMACKDFParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
KDF.getInstance("KMAC128-KDF")
or "KMAC256-KDF"). The customization is the Customization octet string the KDF's algorithm identifier
parameters may carry, empty when absent.| Constructor and Description |
|---|
KMACKDFParameterSpec(byte[] secret,
byte[] context,
byte[] customization,
int outputLength) |
KMACKDFParameterSpec(byte[] secret,
byte[] context,
int outputLength) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContext() |
byte[] |
getCustomization() |
int |
getOutputLength() |
byte[] |
getSecret() |
public KMACKDFParameterSpec(byte[] secret,
byte[] context,
int outputLength)
public KMACKDFParameterSpec(byte[] secret,
byte[] context,
byte[] customization,
int outputLength)
secret - the KMAC key, the KEM shared secret in RFC 9629.context - the KMAC message, the CMSORIforKEMOtherInfo encoding in RFC 9629; may be null.customization - the KMAC customization string, or null for none.outputLength - the number of bytes to derive.