Function esp_idf_svc::sys::mbedtls_poly1305_update

source ยท
pub unsafe extern "C" fn mbedtls_poly1305_update(
    ctx: *mut mbedtls_poly1305_context,
    input: *const u8,
    ilen: usize,
) -> i32
Expand description

\brief This functions feeds an input buffer into an ongoing Poly1305 computation.

             It is called between \c mbedtls_cipher_poly1305_starts() and
             \c mbedtls_cipher_poly1305_finish().
             It can be called repeatedly to process a stream of data.

\param ctx The Poly1305 context to use for the Poly1305 operation. This must be initialized and bound to a key. \param ilen The length of the input data in Bytes. Any value is accepted. \param input The buffer holding the input data. This pointer can be \c NULL if ilen == 0.

\return \c 0 on success. \return A negative error code on failure.