aquatic_udp: use constant_time_eq crate for ConnectionValidator

Crate is used in official blake3 implementation.

Improves speed and removed need for error-prone custom assembly.
This commit is contained in:
Joakim Frostegård 2022-04-15 23:40:05 +02:00
parent fb9b345990
commit 64452503e7
3 changed files with 28 additions and 52 deletions

9
Cargo.lock generated
View file

@ -211,6 +211,7 @@ dependencies = [
"aquatic_udp_protocol",
"blake3",
"cfg-if",
"constant_time_eq 0.2.1",
"crossbeam-channel",
"getrandom",
"hashbrown 0.12.0",
@ -549,7 +550,7 @@ dependencies = [
"arrayvec 0.7.2",
"cc",
"cfg-if",
"constant_time_eq",
"constant_time_eq 0.1.5",
"digest 0.10.3",
]
@ -690,6 +691,12 @@ version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc"
[[package]]
name = "constant_time_eq"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "df04a53a7e91248c27eb6bfc1db165e8f47453e98478e4609f9cce020bb3c65a"
[[package]]
name = "cpufeatures"
version = "0.2.2"