aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Anshul Gupta <ansg191@anshulg.com> 2023-11-07 12:13:32 -0800
committerGravatar Anshul Gupta <ansg191@anshulg.com> 2023-11-12 13:07:53 -0800
commit1756c5b1c54657564ec566e7bacc937c22035d1c (patch)
treeb82e5064c42fe7c60ef819ec8dd366c028adbfa3
parent3e2bd61a4cf2196860c8bfb3d355cf6cd444c48c (diff)
downloadquiche-drop-ring.tar.gz
quiche-drop-ring.tar.zst
quiche-drop-ring.zip
Drops ring from dependenciesdrop-ring
ring is still in the dev-dependencies for the examples.
-rw-r--r--quiche/Cargo.toml2
-rw-r--r--quiche/src/lib.rs3
2 files changed, 2 insertions, 3 deletions
diff --git a/quiche/Cargo.toml b/quiche/Cargo.toml
index f3c47e1a..35219d3d 100644
--- a/quiche/Cargo.toml
+++ b/quiche/Cargo.toml
@@ -58,7 +58,6 @@ either = { version = "1.8", default-features = false }
log = { version = "0.4", features = ["std"] }
libc = "0.2"
libm = "0.2"
-ring = "0.16"
slab = "0.4"
once_cell = "1"
octets = { version = "0.2", path = "../octets" }
@@ -74,6 +73,7 @@ winapi = { version = "0.3", features = ["wincrypt", "ws2def", "ws2ipdef", "ws2tc
[dev-dependencies]
mio = { version = "0.8", features = ["net", "os-poll"] }
+ring = "0.16"
url = "1"
[lib]
diff --git a/quiche/src/lib.rs b/quiche/src/lib.rs
index 3792721c..52b99d4f 100644
--- a/quiche/src/lib.rs
+++ b/quiche/src/lib.rs
@@ -2213,11 +2213,10 @@ impl Connection {
match self.peer_transport_params.stateless_reset_token {
Some(token) => {
let token_len = 16;
- ring::constant_time::verify_slices_are_equal(
+ crypto::constant_time_eq(
&token.to_be_bytes(),
&buf[buf_len - token_len..buf_len],
)
- .is_ok()
},
None => false,