Package org.bouncycastle.crypto
Interface AuthenticationParameters<T extends Parameters>
- Type Parameters:
T- the implementing type for this interface.
- All Superinterfaces:
Parameters
- All Known Subinterfaces:
AuthenticationParametersWithIV<T>
- All Known Implementing Classes:
AES.AuthParameters,ARIA.AuthParameters,Blowfish.AuthParameters,Camellia.AuthParameters,CAST5.AuthParameters,ChaCha20.AuthParameters,DES.AuthParameters,FipsAES.AuthParameters,FipsSHS.AuthParameters,FipsSHS.KMACParameters,FipsTripleDES.AuthParameters,GeneralAuthParameters,GOST28147.AuthParameters,IDEA.AuthParameters,Poly1305.AuthParameters,RC2.AuthParameters,SecureHash.AuthParameters,SEED.AuthParameters,Serpent.AuthParameters,SHACAL2.AuthParameters,SipHash.AuthParameters,TripleDES.AuthParameters,Twofish.AuthParameters
Interface that parameters sets associated with MACs should conform to.
-
Method Summary
Modifier and TypeMethodDescriptionintReturn the size of the MAC these parameters are for.withMACSize(int macSizeInBits) Create a parameter set with the specified MAC size associated with it.Methods inherited from interface org.bouncycastle.crypto.Parameters
getAlgorithm
-
Method Details
-
getMACSizeInBits
int getMACSizeInBits()Return the size of the MAC these parameters are for.- Returns:
- the MAC size in bits.
-
withMACSize
Create a parameter set with the specified MAC size associated with it.- Parameters:
macSizeInBits- bit length of the MAC length.- Returns:
- the new parameter set.
-