//
pkg.gl
Category
github.com/gitpod-io/golang-crypto
poly1305
package
0.0.0-20231122075959-de838e9cb174
Repository:
https://github.com/gitpod-io/golang-crypto.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
0
Files
24 SLOC
#
Functions
New
New returns a new MAC computing an authentication tag of all data written to it with the given key.
Sum
Sum generates an authenticator for msg using a one-time key and puts the 16-byte result into out.
Verify
Verify returns true if mac is a valid authenticator for m with the given key.
#
Constants
TagSize
TagSize is the size, in bytes, of a poly1305 authenticator.
#
Structs
MAC
MAC is an io.Writer computing an authentication tag of the data written to it.