public static final class ChaCha20.Parameters extends GeneralParameters<GeneralAlgorithm> implements ParametersWithIV
| Modifier and Type | Method and Description |
|---|---|
int |
getCounter() |
byte[] |
getIV()
Return the initialization vector associated with this parameter set.
|
ChaCha20.Parameters |
withCounter(int counter) |
ChaCha20.Parameters |
withIV(byte[] iv)
Create a new parameter set with a different IV.
|
ChaCha20.Parameters |
withIV(java.security.SecureRandom random)
Create a new parameter set with a different IV based on the output
of the passed in random.
|
getAlgorithmclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlgorithmpublic byte[] getIV()
ParametersWithIVgetIV in interface ParametersWithIVpublic int getCounter()
public ChaCha20.Parameters withIV(byte[] iv)
ParametersWithIVwithIV in interface ParametersWithIViv - the IV to use.public ChaCha20.Parameters withIV(java.security.SecureRandom random)
ParametersWithIVwithIV in interface ParametersWithIVrandom - the SecureRandom to use as the source of IV data.public ChaCha20.Parameters withCounter(int counter)