mbedtls_poly1305_finish() function
This function generates the Poly1305 Message Authentication Code (MAC).
Arguments
ctx
The Poly1305 context to use for the Poly1305 operation. This must be initialized and bound to a key.
mac
The buffer to where the MAC is written. This must be a writable buffer of length \c 16 Bytes.
Return value
\c 0 on success. A negative error code on failure.