Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ChaCha20Poly1305 Constructor

Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Security.dll (version 7.0.9147)

ChaCha20Poly1305(Byte[])

Initializes a new ChaCha20Poly1305 instance with the provided key.

Declaration
public ChaCha20Poly1305(byte[] key)
Parameters
Type Name Description
Byte[] key

The 32-byte ChaCha20/Poly1305 key to be used by this instance. An instance of the ChaCha20Poly1305 class makes, uses, and clears a copy of the key. An instance of the ChaCha20Poly1305 class IS NOT the owner of the key and the key WILL NOT be cleared when the Dispose() method is called. The owner of the key should clear the key.

In This Article
  • ChaCha20Poly1305(Byte[])
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies