- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
Some checks failed
aes.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
aria.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
belt-block.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
blowfish.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
camellia.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
cast5.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
cast6.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
des.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
gift-cipher.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
idea.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
kuznyechik.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
magma.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
rc2.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
rc5.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
rc6.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
serpent.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
sm4.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
speck-cipher.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
threefish.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
twofish.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
Workspace / clippy (push) Waiting to run
Workspace / rustfmt (push) Waiting to run
Workspace / typos (push) Waiting to run
xtea.yml / fix: point cipher at the den instead of crates.io (push) Failing after 0s
kade/block-ciphers declared cipher as a plain crates.io version requirement, so aes and friends resolved cipher 0.5.2 from crates.io while kade/macs resolved the same 0.5.2 from kade/traits. Two instances of one crate at one version, which is the split-brain condition the Pact exists to prevent. kade/traits serves cipher 0.5.2 and provides the dev, zeroize and alloc features these manifests request, so every declaration converts directly. |
||
| .github | ||
| aes | ||
| aria | ||
| belt-block | ||
| blowfish | ||
| camellia | ||
| cast5 | ||
| cast6 | ||
| des | ||
| gift-cipher | ||
| idea | ||
| kuznyechik | ||
| magma | ||
| rc2 | ||
| rc5 | ||
| rc6 | ||
| serpent | ||
| sm4 | ||
| speck-cipher | ||
| threefish | ||
| twofish | ||
| xtea | ||
| .gitignore | ||
| .typos.toml | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
RustCrypto: block ciphers
Collection of block ciphers written in pure Rust.
Higher level constructions
Crates in this repository implement ONLY raw block cipher functionality defined by traits in the cipher crate.
In practice block ciphers are rarely used in isolation.
Instead, they usually play role of a building block for higher level constructions.
In RustCrypto such constructions are implemented generically over block ciphers in separate repositories:
- AEADs: GCM, SIV, CCM, MGM, etc.
- MACs: CMAC, PMAC.
- Block modes: CTR, CBC, CFB, etc.
- Key wrapping: AES-KW.
Most users should use constructions defined in these repositories without directly relying on raw block cipher functionality.
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 |
|||
| ARIA | aria |
|||
| BelT block cipher | belt-block |
|||
| Blowfish | blowfish |
|||
| Camellia | camellia |
|||
| CAST5 (CAST-128) | cast5 |
|||
| CAST6 (CAST-256) | cast6 |
|||
| DES + 3DES (DEA, 3DEA) | des |
|||
| Gift | gift-cipher |
|||
| IDEA | idea |
|||
| Kuznyechik (GOST R 34.12-2015) | kuznyechik |
|||
| Magma (GOST R 34.12-2015) | magma |
|||
| RC2 (ARC2) | rc2 |
|||
| RC5 | rc5 |
|||
| RC6 | rc6 |
|||
| Serpent | serpent |
|||
| SM4 | sm4 |
|||
| Speck | speck-cipher |
|||
| Threefish | threefish |
|||
| Twofish | twofish |
|||
| XTEA | xtea |
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.