Mirage_crypto.Poly1305
The poly1305 message authentication code
val empty : key:string -> t
empty
is the empty context with the given key
.
val get : t -> string
get t
is the mac corresponding to t
.
mac ~key msg
is the all-in-one mac computation: get (feed (empty ~key) msg)
.
val maci : key:string -> string iter -> string
maci ~key iter
is the all-in-one mac computation: get (feedi (empty ~key) iter)
.