Registry / crypto / aead-poly1305

aead-poly1305

JSON →
library0.0.0-20180717145839-3fee0db0b635gogounverified

Implements the Poly1305 one-time message authentication code as defined in RFC 7539.

go get github.com/aead/poly1305
INSTALL
IMPORT
SIG · AEAD-POLY1305
A
aead-poly1305
cryptogov0.0.0-20180717145839-3fee0db0b635
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

poly1305
github.com/aead/poly1305

Computes a Poly1305 MAC for a message.

package main import ( "fmt" "github.com/aead/poly1305" ) func main() { var key [32]byte var out [16]byte poly1305.Sum(&out, []byte("message"), &key) fmt.Printf("%x\n", out) }
Debug
Known issues
breakingPoly1305 is a one-time MAC; reusing a key for multiple messages compromises security.
fix
Always use a fresh key for each message, or combine with a stream cipher like ChaCha20.
affects: all
Upgrade
Version history
0.0.0-20180717145839-3fee0db0b635latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
30
Resources
aead-poly1305 — go get aead-poly1305 · libregistry