Registry / crypto / sm4
library0.6.0rscratesunverified

SM4 block cipher algorithm implementation.

# Cargo.toml [dependencies] sm4 = "0.6.0"
INSTALL
IMPORT
SIG · SM4
S
sm4
cryptorustv0.6.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.

Sm4
use sm4::Sm4;

Initialize an SM4 cipher with a 128-bit key.

use sm4::Sm4; fn main() { let key = [0u8; 16]; let cipher = Sm4::new(&key); println!("SM4 cipher initialized"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources