Package org.bouncycastle.crypto.general
Class ChaCha20.AuthParameters
java.lang.Object
org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
org.bouncycastle.crypto.general.GeneralParametersWithIV<T>
org.bouncycastle.crypto.general.GeneralAuthParameters<ChaCha20.AuthParameters>
org.bouncycastle.crypto.general.ChaCha20.AuthParameters
- All Implemented Interfaces:
AuthenticationParameters<ChaCha20.AuthParameters>
,AuthenticationParametersWithIV<ChaCha20.AuthParameters>
,Parameters
,ParametersWithIV<ChaCha20.AuthParameters>
- Enclosing class:
- ChaCha20
public static final class ChaCha20.AuthParameters
extends GeneralAuthParameters<ChaCha20.AuthParameters>
Parameters for ChaCha20-Poly1305 cipher.
-
Field Summary
Fields inherited from class org.bouncycastle.crypto.general.GeneralAuthParameters
macLenInBits
Fields inherited from class org.bouncycastle.crypto.general.GeneralParametersWithIV
blockSize, iv
-
Method Summary
Modifier and TypeMethodDescriptionprotected ChaCha20.AuthParameters
create
(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.GeneralAuthParameters
getMACSizeInBits, withIV, withMACSize
Methods inherited from class org.bouncycastle.crypto.general.GeneralParametersWithIV
getIV, withIV
Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
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
Methods inherited from interface org.bouncycastle.crypto.ParametersWithIV
getIV, withIV
-
Method Details
-
withIV
Description copied from class:GeneralParametersWithIV
Return an implementation of our parameterized type with an IV constructed from the passed in SecureRandom.- Specified by:
withIV
in interfaceParametersWithIV<ChaCha20.AuthParameters>
- Overrides:
withIV
in classGeneralParametersWithIV<ChaCha20.AuthParameters>
- 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
- Overrides:
create
in classGeneralAuthParameters<ChaCha20.AuthParameters>
-