Registry / crypto / sm3
library0.5.0rscratesunverified

Implements the SM3 cryptographic hash function (OSCCA GM/T 0004-2012), a Chinese national standard.

# Cargo.toml [dependencies] sm3 = "0.5.0"
INSTALL
IMPORT
SIG · SM3
S
sm3
cryptorustv0.5.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.

Sm3
use sm3::Sm3;

Computes the SM3 hash of a string.

use sm3::{Sm3, Digest}; fn main() { let mut hasher = Sm3::new(); hasher.update(b"hello world"); let result = hasher.finalize(); println!("SM3 hash: {:x}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
sm3 — cargo add sm3 · libregistry