Registry / crypto / aead-siphash

aead-siphash

JSON →
library1.0.1gogounverified

Implements SipHash-64 and SipHash-128 pseudo-random functions for message authentication and hash flooding defense.

go get github.com/aead/siphash
INSTALL
IMPORT
SIG · AEAD-SIPHASH
A
aead-siphash
cryptogov1.0.1
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.

siphash
github.com/aead/siphash

Computes a SipHash-64 MAC for a message.

package main import ( "fmt" "github.com/aead/siphash" ) func main() { key := make([]byte, 16) mac := siphash.Sum64([]byte("message"), key) fmt.Printf("%x\n", mac) }
Debug
Known issues
gotchaSipHash is not a cryptographic hash function and is not collision-resistant.
fix
Do not use for cryptographic signatures or where collision resistance is required.
affects: *
Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
36
Resources
aead-siphash — go get aead-siphash · libregistry