public static final class ChaCha20.Parameters extends GeneralParametersWithIV<ChaCha20.Parameters>
blockSize, iv
Modifier and Type | Method and Description |
---|---|
protected ChaCha20.Parameters |
create(GeneralAlgorithm algorithm,
byte[] iv) |
ChaCha20.Parameters |
withIV(java.security.SecureRandom random)
Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.
|
getIV, withIV
getAlgorithm
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm
public ChaCha20.Parameters withIV(java.security.SecureRandom random)
GeneralParametersWithIV
withIV
in interface ParametersWithIV<ChaCha20.Parameters>
withIV
in class GeneralParametersWithIV<ChaCha20.Parameters>
random
- the SecureRandom to use as the source of IV data.protected ChaCha20.Parameters create(GeneralAlgorithm algorithm, byte[] iv)