RustCrypto: block ciphers
Collection of block ciphers written in pure Rust.
Warnings
Currently only the aes
crate provides constant-time implementation and has received a third-party security audit.
Other crates in this repository are not implemented in a constant-time manner and have not yet received any formal cryptographic and security reviews.
It's generally recommended not to use other cipher implementations in this repository besides the aes
crate.
USE AT YOUR OWN RISK.
Supported algorithms
Name | Crate name | crates.io | Docs | MSRV |
---|---|---|---|---|
AES (Rijndael) | aes |
|||
Blowfish | blowfish |
|||
CAST5 (CAST-128) | cast5 |
|||
DES + 3DES (DEA, 3DEA) | des |
|||
IDEA | idea |
|||
Kuznyechik (GOST R 34.12-2015) | kuznyechik |
|||
Magma (GOST R 34.12-2015) | magma |
|||
RC2 (ARC2) | rc2 |
|||
Serpent | serpent |
|||
SM4 | sm4 |
|||
Threefish | threefish |
|||
Twofish | twofish |
Minimum Supported Rust Version (MSRV) Policy
MSRV bump is considered a breaking change and will be performed only with a minor version bump.
License
All crates 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.