Package org.bouncycastle.jcajce.spec
Class KMACParameterSpec
- java.lang.Object
-
- org.bouncycastle.jcajce.spec.KMACParameterSpec
-
- All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec
public class KMACParameterSpec extends java.lang.Object implements java.security.spec.AlgorithmParameterSpecParameterSpec for the KMAC variants of SHAKE as used by CMS (RFC 8702 §3.4). Carries the MAC output length and the customization stringSthat are encoded in theKMACwithSHAKEnnn-paramsSEQUENCE.
-
-
Constructor Summary
Constructors Constructor Description KMACParameterSpec(int macSizeInBits)Base constructor with empty customization string.KMACParameterSpec(int macSizeInBits, byte[] customizationString)Base constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getCustomizationString()intgetMacSizeInBits()
-
-
-
Constructor Detail
-
KMACParameterSpec
public KMACParameterSpec(int macSizeInBits)
Base constructor with empty customization string.- Parameters:
macSizeInBits- the requested MAC output length in bits; must be a multiple of 8.
-
KMACParameterSpec
public KMACParameterSpec(int macSizeInBits, byte[] customizationString)Base constructor.- Parameters:
macSizeInBits- the requested MAC output length in bits; must be a multiple of 8.customizationString- the customization stringSpassed to KMAC; may be empty.
-
-