The ChaCha20Poly1305 type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ChaCha20Poly1305 |
Initializes a new ChaCha20Poly1305 instance with the provided key.
|
Methods
| Name | Description | |
|---|---|---|
| Decrypt |
Decrypts ciphertext using the secret key and nonce, stores the result to the ciphertext
and validates authTag.
| |
| Dispose |
Releases the resources used by the current instance.
| |
| Encrypt |
Encrypts plaintext using the secret key and nonce, stores the result to the ciphertext and
authenticates resulting ciphertext with optional additionalAuthData and stores the authentication tag to the authTag.
| |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| AuthenticationTagSize | ChaCha20Poly1305 authentication tag size (in bytes). The value of the constant is 16.
| |
| KeySize |
Required ChaCha20Poly1305 key size (in bytes). The value of the constant is 32.
| |
| NonceSize |
Required ChaCha20Poly1305 nonce size (in bytes). The value of the constant is 12.
|