public static final class FipsAES.AuthParameters extends FipsParameters implements AuthenticationParametersWithIV
Modifier and Type | Method and Description |
---|---|
byte[] |
getIV()
Return the initialization vector associated with this parameter set.
|
int |
getMACSizeInBits()
Return the size of the MAC these parameters are for.
|
FipsAES.AuthParameters |
withIV(byte[] iv)
Create a new parameter set with a different IV.
|
FipsAES.AuthParameters |
withIV(java.security.SecureRandom random)
Create a new parameter set with a different IV based on the output
of the passed in random.
|
FipsAES.AuthParameters |
withIV(java.security.SecureRandom random,
int ivLen)
Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.
|
FipsAES.AuthParameters |
withMACSize(int macSizeInBits)
Return a new set of parameters specifying a specific mac size.
|
getAlgorithm
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
public int getMACSizeInBits()
AuthenticationParameters
getMACSizeInBits
in interface AuthenticationParameters
public byte[] getIV()
ParametersWithIV
getIV
in interface ParametersWithIV
public FipsAES.AuthParameters withIV(byte[] iv)
ParametersWithIV
withIV
in interface ParametersWithIV
iv
- the IV to use.public FipsAES.AuthParameters withIV(java.security.SecureRandom random)
ParametersWithIV
withIV
in interface ParametersWithIV
random
- the SecureRandom to use as the source of IV data.public FipsAES.AuthParameters withIV(java.security.SecureRandom random, int ivLen)
AuthenticationParametersWithIV
withIV
in interface AuthenticationParametersWithIV
random
- source of randomness for iv (nonce)ivLen
- length of the iv (nonce) in bytes to use with the algorithm.public FipsAES.AuthParameters withMACSize(int macSizeInBits)
withMACSize
in interface AuthenticationParameters
macSizeInBits
- bit length of the MAC length.