Registry / crypto / poly1305

poly1305

JSON →
library0.9.0rscratesunverified

The Poly1305 universal hash function and message authentication code.

# Cargo.toml [dependencies] poly1305 = "0.9.0"
INSTALL
IMPORT
SIG · POLY1305
P
poly1305
cryptorustv0.9.0
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
use poly1305::Poly1305;

Compute a Poly1305 MAC for a message.

use poly1305::Poly1305; use poly1305::universal_hash::UniversalHash; let key = poly1305::Key::from_slice(b"an example key of 32 bytes!"); let mut mac = Poly1305::new(key); mac.update(b"message"); let result = mac.finalize(); println!("{:x}", result);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
Amazon
1
Resources
poly1305 — cargo add poly1305 · libregistry