From 75f619d7af71ade441754c045c0f052331051db1 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Thu, 26 Sep 2024 19:40:02 -0700 Subject: [PATCH] remove git dependencies to ecdsa and p256 (#1530) ecdsa 0.17.0-pre.9 and p256 0.14.0-pre.2 have now been published --- Cargo.lock | 22 +++++++++++++--------- Cargo.toml | 3 --- cms/Cargo.toml | 4 ++-- x509-cert/Cargo.toml | 4 ++-- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b4792c8a5..98ca4ce8e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -559,8 +559,9 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.17.0-pre.7" -source = "git+https://github.com/RustCrypto/signatures#839cbdabfe3538b347ac4186eb504658cf46e6c6" +version = "0.17.0-pre.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e62f2041a28c40b8884b79fbd19bc7457d76c6397767831e9ff4029fc0473a9" dependencies = [ "der", "digest", @@ -578,9 +579,9 @@ checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "elliptic-curve" -version = "0.14.0-rc.0" +version = "0.14.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0532f93842f7a74b76f927c2495bf3557faa1db03adf829f9e7ecb8307f5785f" +checksum = "cc43715037532dc2d061e5c97e81b684c28993d52a4fa4eb7d2ce2826d78f2f2" dependencies = [ "base16ct", "crypto-bigint", @@ -1015,8 +1016,9 @@ checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" [[package]] name = "p256" -version = "0.14.0-pre.1" -source = "git+https://github.com/RustCrypto/elliptic-curves.git#75ba0874af2cb5c79ce7a5a64b6be9925765f5b4" +version = "0.14.0-pre.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71f3fd64a9cad9c26ed7f734b152196d5e56376b9957c832bcca0de48a708080" dependencies = [ "ecdsa", "elliptic-curve", @@ -1149,8 +1151,9 @@ dependencies = [ [[package]] name = "primeorder" -version = "0.14.0-pre.1" -source = "git+https://github.com/RustCrypto/elliptic-curves.git#75ba0874af2cb5c79ce7a5a64b6be9925765f5b4" +version = "0.14.0-pre.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b794117b388378d55629f78f61e64e182baa200bf59c1a8205e0c46508ce5873" dependencies = [ "elliptic-curve", ] @@ -1285,7 +1288,8 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2" [[package]] name = "rfc6979" version = "0.5.0-pre.4" -source = "git+https://github.com/RustCrypto/signatures#839cbdabfe3538b347ac4186eb504658cf46e6c6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "871ee76a3eee98b0f805e5d1caf26929f4565073c580c053a55f886fc15dea49" dependencies = [ "hmac", "subtle", diff --git a/Cargo.toml b/Cargo.toml index 2bbdd8c88..45c428699 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,7 +60,4 @@ x509-cert = { path = "./x509-cert" } x509-ocsp = { path = "./x509-ocsp" } # Temp patches to external crates -ecdsa = { git = "https://github.com/RustCrypto/signatures" } rsa = { git = "https://github.com/RustCrypto/RSA" } -# https://github.com/RustCrypto/elliptic-curves/pull/1075 -p256 = { git = "https://github.com/RustCrypto/elliptic-curves.git" } diff --git a/cms/Cargo.toml b/cms/Cargo.toml index da44ae7e6..e8acd71c4 100644 --- a/cms/Cargo.toml +++ b/cms/Cargo.toml @@ -38,8 +38,8 @@ pem-rfc7468 = "1.0.0-rc.1" pkcs5 = "0.8.0-rc.1" rand = "0.8.5" rsa = { version = "=0.10.0-pre.2", features = ["sha2"] } -ecdsa = { version = "=0.17.0-pre.7", features = ["digest", "pem"] } -p256 = "=0.14.0-pre.1" +ecdsa = { version = "=0.17.0-pre.9", features = ["digest", "pem"] } +p256 = "=0.14.0-pre.2" [features] alloc = ["der/alloc"] diff --git a/x509-cert/Cargo.toml b/x509-cert/Cargo.toml index 805000ea1..5106911c4 100644 --- a/x509-cert/Cargo.toml +++ b/x509-cert/Cargo.toml @@ -31,8 +31,8 @@ tls_codec = { version = "0.4.0", default-features = false, features = ["derive"] hex-literal = "0.4" rand = "0.8.5" rsa = { version = "=0.10.0-pre.2", features = ["sha2"] } -ecdsa = { version = "=0.17.0-pre.7", features = ["digest", "pem"] } -p256 = "=0.14.0-pre.1" +ecdsa = { version = "=0.17.0-pre.9", features = ["digest", "pem"] } +p256 = "=0.14.0-pre.2" rstest = "0.22" sha2 = { version = "=0.11.0-pre.4", features = ["oid"] } tempfile = "3.5.0"