[][src]Function monocypher::poly1305::auth

pub fn auth(message: &[u8], key: [u8; 32]) -> [u8; 16]

Produces a message authentication code for the given message and authentication key.

Example

use monocypher::poly1305;

let key = [1u8; 32];
let mac = poly1305::auth("test".as_bytes(), key);