• Stars
    star
    654
  • Rank 68,870 (Top 2 %)
  • Language
    Rust
  • Created almost 8 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Collection of block cipher algorithms written in pure Rust

RustCrypto: block ciphers

Project Chat dependency status Apache2/MIT licensed HAZMAT

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:

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 crates.io Documentation MSRV 1.65
ARIA aria crates.io Documentation MSRV 1.65
BelT block cipher belt-block crates.io Documentation MSRV 1.65
Blowfish blowfish crates.io Documentation MSRV 1.65
Camellia camellia crates.io Documentation MSRV 1.65
CAST5 (CAST-128) cast5 crates.io Documentation MSRV 1.65
CAST6 (CAST-256) cast6 crates.io Documentation MSRV 1.65
DES + 3DES (DEA, 3DEA) des crates.io Documentation MSRV 1.65
IDEA idea crates.io Documentation MSRV 1.65
Kuznyechik (GOST R 34.12-2015) kuznyechik crates.io Documentation MSRV 1.65
Magma (GOST R 34.12-2015) magma crates.io Documentation MSRV 1.65
RC2 (ARC2) rc2 crates.io Documentation MSRV 1.65
RC5 rc5 crates.io Documentation MSRV 1.65
Serpent serpent crates.io Documentation MSRV 1.65
SM4 sm4 crates.io Documentation MSRV 1.65
Speck speck crates.io Documentation MSRV 1.65
Threefish threefish crates.io Documentation MSRV 1.65
Twofish twofish crates.io Documentation MSRV 1.65

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.

More Repositories

1

hashes

Collection of cryptographic hash functions written in pure Rust
Rust
1,780
star
2

AEADs

Authenticated Encryption with Associated Data Algorithms: high-level encryption ciphers
Rust
686
star
3

elliptic-curves

Collection of pure Rust elliptic curve implementations: NIST P-224, P-256, P-384, P-521, secp256k1, SM2
Rust
635
star
4

password-hashes

Password hashing functions / KDFs
Rust
623
star
5

traits

Collection of cryptography-related traits
Rust
552
star
6

RSA

RSA implementation in pure Rust
Rust
528
star
7

signatures

Cryptographic signature algorithms: DSA, ECDSA, Ed25519
Rust
451
star
8

utils

Utility crates used in RustCrypto
Rust
427
star
9

stream-ciphers

Collection of stream cipher algorithms
Rust
252
star
10

MACs

Message authentication code algorithms written in pure Rust
Rust
250
star
11

formats

Cryptography-related format encoders/decoders: DER, PEM, PKCS, PKIX
Rust
231
star
12

crypto-bigint

Cryptography-oriented big integer library with constant-time, stack-allocated (no_std-friendly) implementations of modern formulas
Rust
172
star
13

SSH

Pure Rust implementation of components of the Secure Shell (SSH) protocol
Rust
113
star
14

PAKEs

Password-Authenticated Key Agreement protocols
Rust
102
star
15

KDFs

Collection of Key Derivation Functions written in pure Rust
Rust
64
star
16

nacl-compat

Pure Rust compatibility layer for NaCl-family libraries
Rust
56
star
17

block-modes

Collection of generic block mode algorithms written in pure Rust
Rust
53
star
18

JOSE

Pure Rust implementation of Javascript Object Signing and Encryption (JOSE)
Rust
48
star
19

asm-hashes

Assembly implementations of cryptographic hash functions
Assembly
43
star
20

sponges

Collection of sponge functions written in pure Rust
Rust
40
star
21

rustls-rustcrypto

Rustls cryptography provider built on the pure Rust crates from the RustCrypto organization
Rust
38
star
22

ring-compat

Compatibility library for using *ring* as a backend for RustCrypto's traits
Rust
29
star
23

universal-hashes

Collection of universal hashing functions
Rust
26
star
24

book

Reference manual for the RustCrypto project, implemented as an MDBook [WIP]
Rust
18
star
25

meta

Meta-crates of the RustCrypto project
Rust
11
star
26

KEMs

Collection of Key Encapsulation Mechanisms written in pure Rust
Rust
11
star
27

CSRNGs

Collection of Cryptographically Secure PseudoRandom Number Generators written in pure Rust
11
star
28

key-wraps

Symmetric key-wrapping algorithms
Rust
9
star
29

hybrid-array

Hybrid typenum/const generic arrays
Rust
6
star
30

actions

GitHub Actions configs: composite actions and shared workflow configuration
5
star
31

rust-crypto-decoupled

Experiment on dividing rust-crypto into several small crates
Rust
3
star
32

.github

RustCrypto's profile README.md
3
star
33

media

Media files of the RustCrypto project
2
star