Interface ParametersWithIV<T extends Parameters>
- Type Parameters:
T-
- All Superinterfaces:
Parameters
- All Known Subinterfaces:
AuthenticationParametersWithIV<T>
- All Known Implementing Classes:
AES.AuthParameters, AES.Parameters, AES.WrapParameters, ARIA.AuthParameters, ARIA.Parameters, ARIA.WrapParameters, Blowfish.AuthParameters, Blowfish.Parameters, Camellia.AuthParameters, Camellia.Parameters, Camellia.WrapParameters, CAST5.AuthParameters, CAST5.Parameters, ChaCha20.AuthParameters, ChaCha20.Parameters, DES.AuthParameters, DES.Parameters, FipsAES.AuthParameters, FipsAES.ParametersWithIV, FipsTripleDES.AuthParameters, FipsTripleDES.ParametersWithIV, GeneralAuthParameters, GeneralParametersWithIV, GOST28147.AuthParameters, GOST28147.Parameters, IDEA.AuthParameters, IDEA.Parameters, Poly1305.AuthParameters, RC2.AuthParameters, RC2.Parameters, SEED.AuthParameters, SEED.Parameters, SEED.WrapParameters, Serpent.AuthParameters, Serpent.Parameters, Serpent.WrapParameters, SHACAL2.AuthParameters, SHACAL2.Parameters, TripleDES.AuthParameters, TripleDES.Parameters, Twofish.AuthParameters, Twofish.Parameters, Twofish.WrapParameters
Interface describing parameters that have an initialization vector (IV) associated with them.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getIV()Return the initialization vector associated with this parameter set.withIV(byte[] iv) Create a new parameter set with a different IV.withIV(SecureRandom random) Create a new parameter set with a different IV based on the output of the passed in random.Methods inherited from interface Parameters
getAlgorithm
-
Method Details
-
getIV
byte[] getIV()Return the initialization vector associated with this parameter set.- Returns:
- the IV for these parameters.
-
withIV
Create a new parameter set with a different IV.- Parameters:
iv- the IV to use.- Returns:
- a copy of the current parameter set with the new IV.
-
withIV
Create a new parameter set with a different IV based on the output of the passed in random.- Parameters:
random- the SecureRandom to use as the source of IV data.- Returns:
- a copy of the current parameter set with the new IV.
-