Skip to content

Commit

Permalink
Enable AES optimization in ARMv8 (#274)
Browse files Browse the repository at this point in the history
## Type of change
```
- [ ] Bug fix
- [ ] New feature development
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [x] Other
```

## Objective
Enable the ARMv8 Cryptographic Extensions, for a performance increase in
our encryption operations
(https://docs.rs/aes/latest/aes/#armv8-intrinsics-rust-161)

Enabling this requires using Rust 1.61, but I just realized that the
changes in the `config.toml` would only apply to anyone building the SDK
from source and not to anyone using it from crates.io. Seeing as we're
using the latest stable when building ourselves, this seems okay.
  • Loading branch information
dani-garcia authored Oct 9, 2023
1 parent 3ee7973 commit 80b71c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.'cfg(target_arch="aarch64")']
rustflags = ["--cfg", "aes_armv8"]

0 comments on commit 80b71c5

Please sign in to comment.