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
,Blowfish.AuthParameters
,Camellia.AuthParameters
,CAST5.AuthParameters
,DES.AuthParameters
,FipsAES.AuthParameters
,FipsSHS.AuthParameters
,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
public interface AuthenticationParameters<T extends Parameters> extends Parameters
Interface that parameters sets associated with MACs should conform to.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getMACSizeInBits()
Return the size of the MAC these parameters are for.T
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 Detail
-
getMACSizeInBits
int getMACSizeInBits()
Return the size of the MAC these parameters are for.- Returns:
- the MAC size in bits.
-
withMACSize
T withMACSize(int macSizeInBits)
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.
-
-