#block-cipher #crypto #rijndael

no-std aes

Pure Rust implementation of the Advanced Encryption Standard (a.k.a. Rijndael)

16 releases

0.9.0-pre Mar 8, 2024
0.8.3 Jun 18, 2023
0.8.2 Oct 27, 2022
0.8.1 Feb 17, 2022
0.0.0 Oct 6, 2016

#93 in Cryptography

Download history 723122/week @ 2023-11-27 704555/week @ 2023-12-04 705202/week @ 2023-12-11 634288/week @ 2023-12-18 301137/week @ 2023-12-25 544501/week @ 2024-01-01 669896/week @ 2024-01-08 663225/week @ 2024-01-15 717016/week @ 2024-01-22 724985/week @ 2024-01-29 658474/week @ 2024-02-05 736713/week @ 2024-02-12 709383/week @ 2024-02-19 759348/week @ 2024-02-26 753723/week @ 2024-03-04 292355/week @ 2024-03-11

2,553,310 downloads per month
Used in 2,851 crates (414 directly)

MIT/Apache

200KB
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.72 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

~385KB