Function esp_idf_sys::mbedtls_chachapoly_setkey
source ยท pub unsafe extern "C" fn mbedtls_chachapoly_setkey(
ctx: *mut mbedtls_chachapoly_context,
key: *const c_uchar,
) -> c_int
Expand description
\brief This function sets the ChaCha20-Poly1305 symmetric encryption key.
\param ctx The ChaCha20-Poly1305 context to which the key should be bound. This must be initialized. \param key The \c 256 Bit (\c 32 Bytes) key.
\return \c 0 on success. \return A negative error code on failure.