#crypto #aes #block-cipher #rijndael

no-std aes

Pure Rust implementation of the Advanced Encryption Standard (a.k.a. Rijndael) including support for AES in counter mode (a.k.a. AES-CTR)

15 unstable releases (7 breaking)

0.7.4 Jun 1, 2021
0.7.0 Apr 29, 2021
0.6.0 Oct 16, 2020
0.4.0 Jun 5, 2020
0.0.0 Oct 6, 2016

#3 in Cryptography

Download history 79783/week @ 2021-02-26 77703/week @ 2021-03-05 78740/week @ 2021-03-12 77381/week @ 2021-03-19 78899/week @ 2021-03-26 69065/week @ 2021-04-02 79126/week @ 2021-04-09 74486/week @ 2021-04-16 77463/week @ 2021-04-23 77620/week @ 2021-04-30 86446/week @ 2021-05-07 83655/week @ 2021-05-14 80326/week @ 2021-05-21 79547/week @ 2021-05-28 83832/week @ 2021-06-04 70707/week @ 2021-06-11

333,305 downloads per month
Used in 491 crates (106 directly)

MIT/Apache

190KB
4.5K SLoC

RustCrypto: Advanced Encryption Standard (AES)

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

Pure Rust implementation of the Advanced Encryption Standard (AES).

This crate implements the low-level AES block function, and is intended for use for implementing higher-level constructions only. It is NOT intended for direct use in applications.

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!

To avoid this, use an AEAD mode based on AES, such as AES-GCM or AES-GCM-SIV. See the RustCrypto/AEADs repository for more information.

USE AT YOUR OWN RISK!

Notes

This crate has received one security audit by NCC Group, with no significant findings. We would like to thank MobileCoin for funding the audit.

All implementations contained in the crate are designed to execute in constant time, either by relying on hardware intrinsics (i.e. AES-NI on x86/x86_64), or using a portable implementation based on bitslicing.

Minimum Supported Rust Version

Rust 1.49 or higher.

Minimum supported Rust version can be changed in future releases, 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

~270KB