Top Description Methods
org.bouncycastle.crypto

public Interface ParametersWithIV<T extends Parameters>

extends Parameters
Known Direct Subinterfaces
org.bouncycastle.crypto.AuthenticationParametersWithIV
Known Direct Implementers
org.bouncycastle.crypto.fips.FipsTripleDES.Parameters, org.bouncycastle.crypto.fips.FipsAES.Parameters, org.bouncycastle.crypto.general.Camellia.WrapParameters, org.bouncycastle.crypto.general.DES.Parameters, org.bouncycastle.crypto.general.RC2.Parameters, org.bouncycastle.crypto.general.SEED.WrapParameters, org.bouncycastle.crypto.general.Serpent.WrapParameters, org.bouncycastle.crypto.general.Twofish.WrapParameters, org.bouncycastle.crypto.general.GeneralParametersWithIV, org.bouncycastle.crypto.general.GOST28147.Parameters
Imports
java.security.SecureRandom

Interface describing parameters that have an initialization vector (IV) associated with them.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the IV for these parameters.
getIV
()

Return the initialization vector associated with this parameter set.

public T

Returns:

a copy of the current parameter set with the new IV.
withIV
(byte[]
the IV to use.
iv
)

Create a new parameter set with a different IV.

public T

Returns:

a copy of the current parameter set with the new IV.
withIV
(SecureRandom
the SecureRandom to use as the source of IV data.
random
)

Create a new parameter set with a different IV based on the output of the passed in random.

Inherited from org.bouncycastle.crypto.Parameters:
getAlgorithm

Method Detail

getIVback to summary
public byte[] getIV()

Return the initialization vector associated with this parameter set.

Returns:byte[]

the IV for these parameters.

withIVback to summary
public T withIV(byte[] iv)

Create a new parameter set with a different IV.

Parameters
iv:byte[]

the IV to use.

Returns:T

a copy of the current parameter set with the new IV.

withIVback to summary
public T withIV(SecureRandom random)

Create a new parameter set with a different IV based on the output of the passed in random.

Parameters
random:SecureRandom

the SecureRandom to use as the source of IV data.

Returns:T

a copy of the current parameter set with the new IV.