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

- Database: RustSec
- Published: 2021-04-29
- Modified: 2021-05-04

## Affected versions

- aesni (crates.io): all versions

## 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
```

## References

- https://crates.io/crates/aesni
- https://rustsec.org/advisories/RUSTSEC-2021-0059.html
- https://github.com/RustCrypto/block-ciphers/pull/200

Page: https://cve.now/RUSTSEC-2021-0059

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
