7 releases (breaking)

0.5.1 Feb 17, 2022
0.5.0 Feb 10, 2022
0.4.0 Apr 29, 2021
0.3.0 Oct 16, 2020
0.0.0 Oct 14, 2019

#9 in #rust-crypto

Download history 189/week @ 2023-12-17 171/week @ 2023-12-24 191/week @ 2023-12-31 237/week @ 2024-01-07 176/week @ 2024-01-14 278/week @ 2024-01-21 425/week @ 2024-01-28 166/week @ 2024-02-04 97/week @ 2024-02-11 340/week @ 2024-02-18 299/week @ 2024-02-25 223/week @ 2024-03-03 282/week @ 2024-03-10 314/week @ 2024-03-17 260/week @ 2024-03-24 330/week @ 2024-03-31

1,205 downloads per month
Used in 9 crates (6 directly)

MIT/Apache

12KB
162 lines

RustCrypto: SM4 Cipher

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

Pure Rust implementation of the SM4 block cipher.

Documentation

⚠️ 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!

Minimum Supported Rust Version

Rust 1.56 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

SemVer Policy

  • All on-by-default features of this library are covered by SemVer
  • MSRV is considered exempt from SemVer as noted above

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.

Dependencies

~365KB