Package org.bouncycastle.crypto.general
Class IDEA.Parameters
- java.lang.Object
-
- org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
-
- org.bouncycastle.crypto.general.GeneralParametersWithIV<IDEA.Parameters>
-
- org.bouncycastle.crypto.general.IDEA.Parameters
-
- All Implemented Interfaces:
Parameters
,ParametersWithIV<IDEA.Parameters>
- Enclosing class:
- IDEA
public static final class IDEA.Parameters extends GeneralParametersWithIV<IDEA.Parameters>
Parameters for general IDEA block cipher modes.
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.crypto.general.GeneralParametersWithIV
blockSize, iv
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDEA.Parameters
withIV(byte[] iv)
Return an implementation of our parameterized type containing the passed in IV.IDEA.Parameters
withIV(java.security.SecureRandom random)
Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.-
Methods inherited from class org.bouncycastle.crypto.general.GeneralParametersWithIV
getIV
-
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
-
withIV
public IDEA.Parameters withIV(java.security.SecureRandom random)
Description copied from class:GeneralParametersWithIV
Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.- Specified by:
withIV
in interfaceParametersWithIV<IDEA.Parameters>
- Overrides:
withIV
in classGeneralParametersWithIV<IDEA.Parameters>
- Parameters:
random
- the SecureRandom to use as the source of IV data.- Returns:
- a new instance of our parameterized type with a new IV.
-
withIV
public IDEA.Parameters withIV(byte[] iv)
Description copied from class:GeneralParametersWithIV
Return an implementation of our parameterized type containing the passed in IV.- Specified by:
withIV
in interfaceParametersWithIV<IDEA.Parameters>
- Overrides:
withIV
in classGeneralParametersWithIV<IDEA.Parameters>
- Parameters:
iv
- the bytes making up the iv, or nonce, to use.- Returns:
- a new instance of our parameterized type with a new IV.
-
-