Registry / crypto / sina-ghaderi-poly1305

sina-ghaderi-poly1305

JSON →
library0.0.0-20220724002748-c5926b03988bgogounverified

Package poly1305 implements the Poly1305 one-time message authentication code as specified in the original paper.

go get github.com/sina-ghaderi/poly1305
INSTALL
IMPORT
SIG · SINA-GHADERI-POLY1
S
sina-ghaderi-poly1305
cryptogov0.0.0-20220724002748-c5926b03988b
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/sina-ghaderi/poly1305

Computes a Poly1305 MAC for a message.

package main import ( "fmt" "github.com/sina-ghaderi/poly1305" ) func main() { var key [32]byte out := poly1305.Sum(nil, key[:]) fmt.Println(out) }
Debug
Known issues
breakingPoly1305 keys must only be used for a single message; reusing a key compromises security.
fix
Generate a new key for each message or use a construction like Poly1305-AES.
affects: all
Upgrade
Version history
0.0.0-20220724002748-c5926b03988blatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
sina-ghaderi-poly1305 — go get sina-ghaderi-poly1305 · libregistry