Package org.bouncycastle.crypto.general
Class ChaCha20.Parameters
java.lang.Object
org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
org.bouncycastle.crypto.general.GeneralParametersWithIV<ChaCha20.Parameters>
org.bouncycastle.crypto.general.ChaCha20.Parameters
- All Implemented Interfaces:
Parameters,ParametersWithIV<ChaCha20.Parameters>
- Enclosing class:
ChaCha20
Parameters for ChaCha20 cipher.
-
Field Summary
Fields inherited from class org.bouncycastle.crypto.general.GeneralParametersWithIV
blockSize, iv -
Method Summary
Modifier and TypeMethodDescriptionprotected ChaCha20.Parameterscreate(GeneralAlgorithm algorithm, byte[] iv) withIV(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, withIVMethods 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
-
withIV
Description copied from class:GeneralParametersWithIVReturn an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.- Specified by:
withIVin interfaceParametersWithIV<ChaCha20.Parameters>- Overrides:
withIVin classGeneralParametersWithIV<ChaCha20.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.
-
create
-