Registry / crypto / rs-hasher-ctx

rs-hasher-ctx

JSON →
library0.1.3rscratesunverified

Internal crate of RustyShield providing the HasherContext trait for unifying hash result retrieval across cryptographic hash implementations.

# Cargo.toml [dependencies] rs_hasher_ctx = "0.1.3"
INSTALL
IMPORT
SIG · RS-HASHER-CTX
R
rs-hasher-ctx
cryptorustv0.1.3
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.

HasherContext
use rs_hasher_ctx::HasherContext;

Uses HasherContext to obtain the hash result from a SHA-256 hasher.

use rs_hasher_ctx::HasherContext; use sha2::{Sha256, Digest}; let mut hasher = Sha256::new(); hasher.update(b"hello world"); let hash = hasher.finalize(); let context: &[u8] = HasherContext::finish(&mut hasher); println!("{:x?}", context);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
Amazon
1
Resources
rs-hasher-ctx — cargo add rs-hasher-ctx · libregistry