public class OneStepKDFParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
KDF.getInstance("ONESTEP-SHA256"), "ONESTEP-HMACSHA256", "ONESTEP-KMAC128", ...): the shared
secret Z, the FixedInfo, the output length, and for the HMAC and KMAC options an optional salt.| Constructor and Description |
|---|
OneStepKDFParameterSpec(byte[] z,
byte[] salt,
byte[] fixedInfo,
int outputLength) |
OneStepKDFParameterSpec(byte[] z,
byte[] fixedInfo,
int outputLength)
Hash option, or HMAC/KMAC with the standard's default salt.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getFixedInfo() |
int |
getOutputLength() |
byte[] |
getSalt() |
byte[] |
getZ() |
public OneStepKDFParameterSpec(byte[] z,
byte[] fixedInfo,
int outputLength)
z - the shared secret.fixedInfo - the FixedInfo, may be null.outputLength - the number of bytes to derive.public OneStepKDFParameterSpec(byte[] z,
byte[] salt,
byte[] fixedInfo,
int outputLength)
z - the shared secret.salt - the salt keying HMAC or KMAC, or null for the standard's default salt; ignored by
the hash option.fixedInfo - the FixedInfo, may be null.outputLength - the number of bytes to derive.