Package org.bouncycastle.crypto.general
Class GOST28147.AuthParameters
java.lang.Object
org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
org.bouncycastle.crypto.general.GeneralParametersWithIV<T>
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 org.bouncycastle.crypto.general.GeneralAuthParameters
macLenInBits
Fields inherited from class org.bouncycastle.crypto.general.GeneralParametersWithIV
blockSize, iv
-
Constructor Summary
ConstructorsConstructorDescriptionAuthParameters
(GeneralAlgorithm algorithm, byte[] sBox) Base constructor - the algorithm, null IV. -
Method Summary
Modifier and TypeMethodDescriptionprotected GOST28147.AuthParameters
create
(GeneralAlgorithm algorithm, byte[] iv, int macSizeInBits) byte[]
getSBox()
withSBox
(byte[] sBox) Methods inherited from class org.bouncycastle.crypto.general.GeneralAuthParameters
create, getMACSizeInBits, withIV, withMACSize
Methods inherited from class org.bouncycastle.crypto.general.GeneralParametersWithIV
getIV, withIV, withIV
Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
getAlgorithm
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bouncycastle.crypto.Parameters
getAlgorithm
Methods inherited from interface org.bouncycastle.crypto.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()
-