public static final class Twofish.WrapParameters extends GeneralParameters<GeneralAlgorithm> implements ParametersWithIV
Modifier and Type | Method and Description |
---|---|
byte[] |
getIV()
Return the initialization vector associated with this parameter set.
|
boolean |
isUsingInverseFunction() |
Twofish.WrapParameters |
withIV(byte[] iv)
Create a new parameter set with a different IV.
|
Twofish.WrapParameters |
withIV(java.security.SecureRandom random)
Create a new parameter set with a different IV based on the output
of the passed in random.
|
Twofish.WrapParameters |
withUsingInverseFunction(boolean useInverse) |
getAlgorithm
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
public Twofish.WrapParameters withUsingInverseFunction(boolean useInverse)
public Twofish.WrapParameters withIV(byte[] iv)
ParametersWithIV
withIV
in interface ParametersWithIV
iv
- the IV to use.public Twofish.WrapParameters withIV(java.security.SecureRandom random)
ParametersWithIV
withIV
in interface ParametersWithIV
random
- the SecureRandom to use as the source of IV data.public byte[] getIV()
ParametersWithIV
getIV
in interface ParametersWithIV
public boolean isUsingInverseFunction()