Package org.bouncycastle.crypto
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
,Blowfish.AuthParameters
,Blowfish.Parameters
,Camellia.AuthParameters
,Camellia.Parameters
,Camellia.WrapParameters
,CAST5.AuthParameters
,CAST5.Parameters
,ChaCha20.Parameters
,DES.AuthParameters
,DES.Parameters
,FipsAES.AuthParameters
,FipsAES.Parameters
,FipsTripleDES.AuthParameters
,FipsTripleDES.Parameters
,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
public interface ParametersWithIV<T extends Parameters> extends Parameters
Interface describing parameters that have an initialization vector (IV) associated with them.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getIV()
Return the initialization vector associated with this parameter set.T
withIV(byte[] iv)
Create a new parameter set with a different IV.T
withIV(java.security.SecureRandom random)
Create a new parameter set with a different IV based on the output of the passed in random.-
Methods inherited from interface org.bouncycastle.crypto.Parameters
getAlgorithm
-
-
-
-
Method Detail
-
getIV
byte[] getIV()
Return the initialization vector associated with this parameter set.- Returns:
- the IV for these parameters.
-
withIV
T withIV(byte[] iv)
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
T withIV(java.security.SecureRandom random)
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.
-
-