Package org.bouncycastle.crypto.fips
Class FipsAES.Parameters
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsParameters
-
- org.bouncycastle.crypto.fips.FipsAES.Parameters
-
- All Implemented Interfaces:
Parameters,ParametersWithIV
- Enclosing class:
- FipsAES
public static final class FipsAES.Parameters extends FipsParameters implements ParametersWithIV
General AES operator parameters.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getIV()Return the initialization vector associated with this parameter set.FipsAES.ParameterswithIV(byte[] iv)Create a new parameter set with a different IV.FipsAES.ParameterswithIV(java.security.SecureRandom random)Create a new parameter set with a different IV based on the output of the passed in random.-
Methods inherited from class org.bouncycastle.crypto.fips.FipsParameters
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 FipsAES.Parameters withIV(byte[] iv)
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
public FipsAES.Parameters withIV(java.security.SecureRandom random)
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.
-
-