Class GOST28147.AuthParameters
java.lang.Object
org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
org.bouncycastle.crypto.general.GeneralParametersWithIV<GOST28147.AuthParameters>
org.bouncycastle.crypto.general.GeneralAuthParameters<GOST28147.AuthParameters>
org.bouncycastle.crypto.general.GOST28147.AuthParameters
- All Implemented Interfaces:
AuthenticationParameters<GOST28147.AuthParameters>, AuthenticationParametersWithIV<GOST28147.AuthParameters>, Parameters, ParametersWithIV<GOST28147.AuthParameters>
- Enclosing class:
GOST28147
public static final class GOST28147.AuthParameters
extends GeneralAuthParameters<GOST28147.AuthParameters>
Parameters for GOST28147 AEAD and MAC modes.
-
Field Summary
Fields inherited from class GeneralAuthParameters
macLenInBitsFields inherited from class GeneralParametersWithIV
blockSize, iv -
Constructor Summary
ConstructorsConstructorDescriptionAuthParameters(GeneralAlgorithm algorithm, byte[] sBox) Base constructor - the algorithm, null IV. -
Method Summary
Modifier and TypeMethodDescriptionprotected GOST28147.AuthParameterscreate(GeneralAlgorithm algorithm, byte[] iv, int macSizeInBits) byte[]getSBox()withSBox(byte[] sBox) Methods inherited from class GeneralAuthParameters
create, getMACSizeInBits, withIV, withMACSizeMethods inherited from class GeneralParametersWithIV
getIV, withIV, withIVMethods inherited from class GeneralParameters
getAlgorithmMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Parameters
getAlgorithmMethods inherited from interface ParametersWithIV
getIV, withIV, withIV
-
Constructor Details
-
AuthParameters
Base constructor - the algorithm, null IV. In this case the tag length defaults to the 64 for CMAC, 32 bits otherwise.- Parameters:
algorithm- algorithm mode.sBox- alternate sBox to use.
-
-
Method Details
-
create
-
withSBox
-
getSBox
public byte[] getSBox()
-