The ChaCha20Poly1305 type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkChaCha20Poly1305
Initializes a new ChaCha20Poly1305 instance with the provided key.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkDecrypt
Decrypts ciphertext using the secret key and nonce, stores the result to the ciphertext and validates authTag.
Public methodSupported by the .NET Compact FrameworkDispose
Releases the resources used by the current instance.
Public methodSupported by the .NET Compact FrameworkEncrypt
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.
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCode
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.)
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Public fieldStatic memberSupported by the .NET Compact FrameworkAuthenticationTagSize
ChaCha20Poly1305 authentication tag size (in bytes). The value of the constant is 16.
Public fieldStatic memberSupported by the .NET Compact FrameworkKeySize
Required ChaCha20Poly1305 key size (in bytes). The value of the constant is 32.
Public fieldStatic memberSupported by the .NET Compact FrameworkNonceSize
Required ChaCha20Poly1305 nonce size (in bytes). The value of the constant is 12.

See Also