Skip to content

Commit

Permalink
aes-gcm(-siv): add nightly-only armv8 feature (#318)
Browse files Browse the repository at this point in the history
This commit adds an `armv8` feature to the `aes-gcm`/`aes-gcm-siv`
crates, which enables the corresponding `armv8` features on the `aes`
crate and the `ghash`/`polyval` crates.

When enabled, these features use `stdarch`-based backends which leverage
the ARMv8 Cryptography Extensions.

Presently `aarch64`-only.
  • Loading branch information
tarcieri authored May 31, 2021
1 parent 4d27b7e commit 1389624
Show file tree
Hide file tree
Showing 5 changed files with 628 additions and 18 deletions.
11 changes: 7 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

284 changes: 284 additions & 0 deletions aes-gcm-siv/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions aes-gcm-siv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,24 @@ categories = ["cryptography", "no-std"]

[dependencies]
aead = { version = "0.4", default-features = false }
aes = { version = "0.7", optional = true }
aes = { version = "0.7.2", optional = true }
cipher = "0.3"
ctr = "0.7"
polyval = { version = "0.5", default-features = false }
polyval = { version = "0.5.1", default-features = false }
subtle = { version = "2", default-features = false }
zeroize = { version = "1", default-features = false }

[dev-dependencies]
aead = { version = "0.4", features = ["dev"], default-features = false }

[features]
default = ["aes", "alloc"]
std = ["aead/std", "alloc"]
alloc = ["aead/alloc"]
heapless = ["aead/heapless"]
stream = ["aead/stream"]
default = ["aes", "alloc"]
std = ["aead/std", "alloc"]
alloc = ["aead/alloc"]
armv8 = ["aes/armv8", "polyval/armv8"] # nightly-only
force-soft = ["aes/force-soft", "polyval/force-soft"]
heapless = ["aead/heapless"]
stream = ["aead/stream"]

[package.metadata.docs.rs]
all-features = true
Loading

0 comments on commit 1389624

Please sign in to comment.