#block-cipher #rijndael #crypto

no-std aes

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

19 releases

0.9.0-pre.2 Aug 14, 2024
0.9.0-pre.1 Jul 26, 2024
0.9.0-pre Mar 8, 2024
0.8.3 Jun 18, 2023
0.0.0 Oct 6, 2016

#14 in Cryptography

Download history 848219/week @ 2024-07-27 859610/week @ 2024-08-03 870054/week @ 2024-08-10 877129/week @ 2024-08-17 905323/week @ 2024-08-24 858818/week @ 2024-08-31 882100/week @ 2024-09-07 814501/week @ 2024-09-14 884937/week @ 2024-09-21 905240/week @ 2024-09-28 942750/week @ 2024-10-05 922761/week @ 2024-10-12 969673/week @ 2024-10-19 921229/week @ 2024-10-26 906043/week @ 2024-11-02 925959/week @ 2024-11-09

3,886,747 downloads per month
Used in 3,693 crates (501 directly)

MIT/Apache

195KB
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.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

~400KB