sm4

Crates.iosm4
lib.rssm4
version0.6.0-rc.2
created_at2019-10-14 12:28:00.747901+00
updated_at2025-11-05 17:08:08.876256+00
descriptionSM4 block cipher algorithm
homepage
repositoryhttps://github.com/RustCrypto/block-ciphers
max_upload_size
id172440
size29,177
block-ciphers (github:rustcrypto:block-ciphers)

documentation

https://docs.rs/sm4

README

RustCrypto: SM4 Cipher

crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status HAZMAT

Pure Rust implementation of the SM4 block cipher.

⚠️ Security Warning: Hazmat!

This crate does not ensure ciphertexts are authentic (i.e. by using a MAC to verify ciphertext integrity), which can lead to serious vulnerabilities if used incorrectly!

No security audits of this crate have ever been performed, and it has not been thoroughly assessed to ensure its operation is constant-time on common CPU architectures.

USE AT YOUR OWN RISK!

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 556

cargo fmt