mbedtls_chachapoly_setkey() function
This function sets the ChaCha20-Poly1305 symmetric encryption key.
Arguments
ctx
The ChaCha20-Poly1305 context to which the key should be bound. This must be initialized.
key
The \c 256 Bit (\c 32 Bytes) key.
Return value
\c 0 on success. A negative error code on failure.