Package org.bouncycastle.crypto.general
Class Camellia.WrapParameters
- java.lang.Object
-
- org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
-
- org.bouncycastle.crypto.general.Camellia.WrapParameters
-
- All Implemented Interfaces:
Parameters
,ParametersWithIV
- Enclosing class:
- Camellia
public static final class Camellia.WrapParameters extends GeneralParameters<GeneralAlgorithm> implements ParametersWithIV
Camellia WRAP operator parameters for KW and KWP.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getIV()
Return the initialization vector associated with this parameter set.boolean
isUsingInverseFunction()
Camellia.WrapParameters
withIV(byte[] iv)
Create a new parameter set with a different IV.Camellia.WrapParameters
withIV(java.security.SecureRandom random)
Create a new parameter set with a different IV based on the output of the passed in random.Camellia.WrapParameters
withUsingInverseFunction(boolean useInverse)
-
Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
getAlgorithm
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.crypto.Parameters
getAlgorithm
-
-
-
-
Method Detail
-
withUsingInverseFunction
public Camellia.WrapParameters withUsingInverseFunction(boolean useInverse)
-
withIV
public Camellia.WrapParameters withIV(byte[] iv)
Description copied from interface:ParametersWithIV
Create a new parameter set with a different IV.- Specified by:
withIV
in interfaceParametersWithIV
- Parameters:
iv
- the IV to use.- Returns:
- a copy of the current parameter set with the new IV.
-
withIV
public Camellia.WrapParameters withIV(java.security.SecureRandom random)
Description copied from interface:ParametersWithIV
Create a new parameter set with a different IV based on the output of the passed in random.- Specified by:
withIV
in interfaceParametersWithIV
- Parameters:
random
- the SecureRandom to use as the source of IV data.- Returns:
- a copy of the current parameter set with the new IV.
-
getIV
public byte[] getIV()
Description copied from interface:ParametersWithIV
Return the initialization vector associated with this parameter set.- Specified by:
getIV
in interfaceParametersWithIV
- Returns:
- the IV for these parameters.
-
isUsingInverseFunction
public boolean isUsingInverseFunction()
-
-