id-alg-AEADChaCha20Poly1305 OBJECT IDENTIFIER ::=
{ iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
pkcs9(9) smime(16) alg(3) 18 }
AEADChaCha20Poly1305Nonce ::= OCTET STRING (SIZE(12))
The AlgorithmParameters may be instantiated either by its name
("ChaCha20-Poly1305") or via its OID (1.2.840.113549.1.9.16.3.18)
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | Returns: a byte array containing the DER-encoding for the ChaCha20-Poly1305 parameters. This will be the nonce encoded as a DER OCTET STRING.Implements abstract java. Return the encoded parameters in ASN.1 form. |
| protected byte[] | Returns: a byte array containing the DER-encoding for the ChaCha20-Poly1305 parameters.the encoding method to be used. This parameter
must be "ASN.1" as it is the only currently supported encoding
format. If the parameter is encodingMethod)null then the default
encoding format will be used.Implements abstract java. Return the encoded parameters in ASN.1 form. |
| protected <T extends AlgorithmParameterSpec> T | Returns: aIvParameterSpec object containing the nonce
value held in this object.the class name of the spec. In this case it should
be paramSpec)IvParameterSpec.class.Implements abstract java. Return an IvParameterSpec with the same parameters as those held in this object. |
| protected void | engineInit(AlgorithmParameterSpec
the paramSpec)IvParameterSpec used to configure
this object.Implements abstract java. Initialize the ChaCha20Poly1305Parameters using an IvParameterSpec. |
| protected void | engineInit(byte[]
the DER encoding of the nonce as an OCTET STRING. encoded)Implements abstract java. Initialize the ChaCha20Poly1305Parameters from a DER encoded parameter block. |
| protected void | engineInit(byte[]
the DER encoding of the nonce and initial block counter. encoded, String the decoding method. The only currently accepted
value is "ASN.1" decodingMethod)Implements abstract java. Initialize the ChaCha20Poly1305Parameters from a DER encoded parameter block. |
| protected String | Returns: a string representation of the ChaCha20 parameters.Implements abstract java. Creates a formatted string describing the parameters. |
| DEFAULT_FMT | back to summary |
|---|---|
| private static final String DEFAULT_FMT | |
| nonce | back to summary |
|---|---|
| private byte[] nonce | |
| ChaCha20Poly1305Parameters | back to summary |
|---|---|
| public ChaCha20Poly1305Parameters() | |
| engineGetEncoded | back to summary |
|---|---|
| protected byte[] engineGetEncoded() throws IOException Implements abstract java. Return the encoded parameters in ASN.1 form.
| |
| engineGetEncoded | back to summary |
|---|---|
| protected byte[] engineGetEncoded(String encodingMethod) throws IOException Implements abstract java. Return the encoded parameters in ASN.1 form.
| |
| engineGetParameterSpec | back to summary |
|---|---|
| protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException Implements abstract java. Return an IvParameterSpec with the same parameters as those held in this object.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException Implements abstract java. Initialize the ChaCha20Poly1305Parameters using an IvParameterSpec.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(byte[] encoded) throws IOException Implements abstract java. Initialize the ChaCha20Poly1305Parameters from a DER encoded parameter block.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(byte[] encoded, String decodingMethod) throws IOException Implements abstract java. Initialize the ChaCha20Poly1305Parameters from a DER encoded parameter block.
| |
| engineToString | back to summary |
|---|---|
| protected String engineToString() Implements abstract java. Creates a formatted string describing the parameters. | |