# RUSTSEC-2021-0059: `aesni` has been merged into the `aes` crate

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2021-04-29T12:00:00.000Z
- Modified: 2021-05-04T01:28:43.000Z

## Description

Please use the `aes` crate going forward. The new repository location is at:

<https://github.com/RustCrypto/block-ciphers/tree/master/aes>

AES-NI is now autodetected at runtime on `i686`/`x86-64` platforms.
If AES-NI is not present, the `aes` crate will fallback to a constant-time
portable software implementation.

To prevent this fallback (and have absence of AES-NI result in an illegal
instruction crash instead), continue to pass the same RUSTFLAGS which were
previously required for the `aesni` crate to compile:

```
RUSTFLAGS=-Ctarget-feature=+aes,+ssse3
```

(As written by RustSec Advisory Database.)

## Affected

- aesni (crates.io): from 0.0.0-0

## References

- <https://crates.io/crates/aesni> (package)
- <https://rustsec.org/advisories/RUSTSEC-2021-0059.html> (advisory)
- <https://github.com/RustCrypto/block-ciphers/pull/200> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2021-0059](https://rustsec.org/advisories/RUSTSEC-2021-0059.html), CC0-1.0, modified 2021-05-04

---

Page: https://cve.day/RUSTSEC-2021-0059 · Whole record: https://cve.day/RUSTSEC-2021-0059.json · Rebuilt by cve.day 2026-11-25T22:56:43.039Z
