public class KMACParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
S that are
encoded in the KMACwithSHAKEnnn-params SEQUENCE.| Constructor and Description |
|---|
KMACParameterSpec(int macSizeInBits)
Base constructor with empty customization string.
|
KMACParameterSpec(int macSizeInBits,
byte[] customizationString)
Base constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getCustomizationString() |
int |
getMacSizeInBits() |
public KMACParameterSpec(int macSizeInBits)
macSizeInBits - the requested MAC output length in bits; must be a multiple of 8.public KMACParameterSpec(int macSizeInBits,
byte[] customizationString)
macSizeInBits - the requested MAC output length in bits; must be a multiple of 8.customizationString - the customization string S passed to KMAC; may be empty.