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