mbedtls_chacha20_init() function
This function initializes the specified ChaCha20 context. It must be the first API called before using the context. It is usually followed by calls to \c mbedtls_chacha20_setkey() and \c mbedtls_chacha20_starts(), then one or more calls to to \c mbedtls_chacha20_update(), and finally to \c mbedtls_chacha20_free().
Arguments
ctx
The ChaCha20 context to initialize. This must not be \c NULL.