Skip to content

Commit 8fe6931

Browse files
committed
crypto: Use RustCrypto's AES and AES-CTR implementations
The signal-crypto struct Aes256Ctr32 is still useful because we use a different nonce size than RustCrypto's "full block", and we provide a convenience constructor to specify an initial counter value.
1 parent 0ba46f4 commit 8fe6931

File tree

8 files changed

+22
-468
lines changed

8 files changed

+22
-468
lines changed

Cargo.lock

Lines changed: 1 addition & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/crypto/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = ["Jack Lloyd <[email protected]>"]
1010
edition = "2018"
1111

1212
[dependencies]
13-
aes-soft = "0.6"
13+
aes = { version = "0.7.4", features = ["armv8", "ctr"] }
1414
polyval = "0.4"
1515
subtle = "2.3"
1616
cipher = "0.2"
@@ -23,9 +23,6 @@ sha2 = "0.9"
2323
[target.'cfg(all(target_arch = "aarch64", any(target_os = "linux")))'.dependencies]
2424
libc = "0.2.93" # for getauxval
2525

26-
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
27-
aesni = { version = "0.10", features = ["nocheck"] }
28-
2926
[dev-dependencies]
3027
serde = { version = "1.0", features = ["derive"] }
3128
serde_json = "1.0"

rust/crypto/src/aes.rs

Lines changed: 0 additions & 108 deletions
This file was deleted.

rust/crypto/src/aes/aarch64.rs

Lines changed: 0 additions & 207 deletions
This file was deleted.

0 commit comments

Comments
 (0)