pub unsafe extern "C" fn mbedtls_poly1305_mac(
    key: *const c_uchar,
    input: *const c_uchar,
    ilen: usize,
    mac: *mut c_uchar
) -> c_int
Expand description

\brief This function calculates the Poly1305 MAC of the input buffer with the provided key.

\warning The key must be unique and unpredictable for each invocation of Poly1305.

\param key The buffer containing the \c 32 Byte (\c 256 Bit) 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. \param mac The buffer to where the MAC is written. This must be a writable buffer of length \c 16 Bytes.

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