• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

benches/H03-May-2022-205129

src/H03-May-2022-6720

tests/H03-May-2022-73

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D16-Oct-202074 65

CHANGELOG.mdH A D16-Oct-20201.2 KiB4529

Cargo.tomlH A D16-Oct-20201.4 KiB3533

Cargo.toml.orig-cargoH A D16-Oct-2020899 2520

LICENSE-APACHEH A D26-May-202010.6 KiB202169

LICENSE-MITH A D26-May-20201 KiB2622

README.mdH A D06-Oct-20203.5 KiB9465

README.md

1# RustCrypto: Advanced Encryption Standard (AES)
2
3[![crate][crate-image]][crate-link]
4[![Docs][docs-image]][docs-link]
5![Apache2/MIT licensed][license-image]
6![Rust Version][rustc-image]
7[![Project Chat][chat-image]][chat-link]
8[![Build Status][build-image]][build-link]
9[![HAZMAT][hazmat-image]][hazmat-link]
10
11Pure Rust implementation of the [Advanced Encryption Standard (AES)][1].
12
13This crate implements the low-level AES block function, and is intended
14for use for implementing higher-level constructions *only*. It is NOT
15intended for direct use in applications.
16
17[Documentation][docs-link]
18
19<img src="https://raw.githubusercontent.com/RustCrypto/meta/master/img/block-ciphers/aes-subbytes.png" width="480px">
20
21## Security
22
23### ⚠️ Warning: [Hazmat!][hazmat-link]
24
25This crate does not ensure ciphertexts are authentic (i.e. by using a MAC to
26verify ciphertext integrity), which can lead to serious vulnerabilities
27if used incorrectly!
28
29To avoid this, use an [AEAD][2] mode based on AES, such as [AES-GCM][3] or [AES-GCM-SIV][4].
30See the [RustCrypto/AEADs][5] repository for more information.
31
32USE AT YOUR OWN RISK!
33
34### Notes
35
36This crate has received one [security audit by NCC Group][6], with no significant
37findings. We would like to thank [MobileCoin][7] for funding the audit.
38
39All implementations contained in the crate are designed to execute in constant
40time, either by relying on hardware intrinsics (i.e. AES-NI on x86/x86_64), or
41using a portable implementation based on bitslicing.
42
43## Minimum Supported Rust Version
44
45Rust **1.41** or higher.
46
47Minimum supported Rust version can be changed in the future, but it will be
48done with a minor version bump.
49
50## SemVer Policy
51
52- All on-by-default features of this library are covered by SemVer
53- MSRV is considered exempt from SemVer as noted above
54
55## License
56
57Licensed under either of:
58
59 * [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
60 * [MIT license](http://opensource.org/licenses/MIT)
61
62at your option.
63
64### Contribution
65
66Unless you explicitly state otherwise, any contribution intentionally submitted
67for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
68dual licensed as above, without any additional terms or conditions.
69
70[//]: # (badges)
71
72[crate-image]: https://img.shields.io/crates/v/aes.svg
73[crate-link]: https://crates.io/crates/aes
74[docs-image]: https://docs.rs/aes/badge.svg
75[docs-link]: https://docs.rs/aes/
76[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
77[rustc-image]: https://img.shields.io/badge/rustc-1.41+-blue.svg
78[hazmat-image]: https://img.shields.io/badge/crypto-hazmat%E2%9A%A0-red.svg
79[hazmat-link]: https://github.com/RustCrypto/meta/blob/master/HAZMAT.md
80[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
81[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260039-block-ciphers
82[build-image]: https://github.com/RustCrypto/block-ciphers/workflows/aes/badge.svg?branch=master&event=push
83[build-link]: https://github.com/RustCrypto/block-ciphers/actions?query=workflow%3Aaes
84
85[//]: # (general links)
86
87[1]: https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
88[2]: https://en.wikipedia.org/wiki/Authenticated_encryption
89[3]: https://github.com/RustCrypto/AEADs/tree/master/aes-gcm
90[4]: https://github.com/RustCrypto/AEADs/tree/master/aes-gcm-siv
91[5]: https://github.com/RustCrypto/AEADs
92[6]: https://research.nccgroup.com/2020/02/26/public-report-rustcrypto-aes-gcm-and-chacha20poly1305-implementation-review/
93[7]: https://www.mobilecoin.com/
94