Function esp_idf_svc::hal::sys::mbedtls_poly1305_starts
source ยท pub unsafe extern "C" fn mbedtls_poly1305_starts(
ctx: *mut mbedtls_poly1305_context,
key: *const u8,
) -> i32
Expand description
\brief This function sets the one-time authentication key.
\warning The key must be unique and unpredictable for each invocation of Poly1305.
\param ctx The Poly1305 context to which the key should be bound. This must be initialized. \param key The buffer containing the \c 32 Byte (\c 256 Bit) key.
\return \c 0 on success. \return A negative error code on failure.