Function esp_idf_sys::mbedtls_chacha20_init

source ยท
pub unsafe extern "C" fn mbedtls_chacha20_init(
    ctx: *mut mbedtls_chacha20_context,
)
Expand description

\brief 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().

\param ctx The ChaCha20 context to initialize. This must not be \c NULL.