Package org.bouncycastle.crypto.general
Class ARIA.WrapParameters
java.lang.Object
org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
org.bouncycastle.crypto.general.ARIA.WrapParameters
- All Implemented Interfaces:
Parameters,ParametersWithIV
- Enclosing class:
ARIA
public static final class ARIA.WrapParameters
extends GeneralParameters<GeneralAlgorithm>
implements ParametersWithIV
ARIA WRAP operator parameters for KW and KWP.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getIV()Return the initialization vector associated with this parameter set.booleanwithIV(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.withUsingInverseFunction(boolean useInverse) Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
getAlgorithmMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bouncycastle.crypto.Parameters
getAlgorithm
-
Method Details
-
withUsingInverseFunction
-
withIV
Description copied from interface:ParametersWithIVCreate a new parameter set with a different IV.- Specified by:
withIVin interfaceParametersWithIV- Parameters:
iv- the IV to use.- Returns:
- a copy of the current parameter set with the new IV.
-
withIV
Description copied from interface:ParametersWithIVCreate a new parameter set with a different IV based on the output of the passed in random.- Specified by:
withIVin 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:ParametersWithIVReturn the initialization vector associated with this parameter set.- Specified by:
getIVin interfaceParametersWithIV- Returns:
- the IV for these parameters.
-
isUsingInverseFunction
public boolean isUsingInverseFunction()
-