Skip to content

Commit 6fc91fa

Browse files
fix: pin leftover pre-release crypto crates (#538)
The patch version upgrade is not allowed to bring breaking changes, but this rule doesn't work for an `rc` version. So we should pin the `rc` versions, to not allow _cargo_ update to a new `rc` automatically.
1 parent 7280f7a commit 6fc91fa

File tree

3 files changed

+69
-6
lines changed

3 files changed

+69
-6
lines changed

Cargo.lock

Lines changed: 33 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ sha2 = "=0.11.0-rc.2"
5555
num-derive = "0.4"
5656
num-traits = { version = "0.2", default-features = false }
5757

58-
picky = { version = "7.0.0-rc.19", default-features = false }
58+
picky = { version = "=7.0.0-rc.20", default-features = false }
5959
picky-asn1 = "0.10"
6060
picky-asn1-der = "0.5"
6161
picky-asn1-x509 = "0.15"
@@ -162,6 +162,7 @@ tokio = { workspace = true, features = ["time", "rt", "rt-multi-thread"] }
162162

163163
# Pin transitive dependencies
164164
# TODO: Remove when stable versions will be released
165+
# RustCrypto crates
165166
digest = "=0.11.0-rc.3"
166167
block-buffer = "=0.11.0-rc.5"
167168
crypto-common = "=0.2.0-rc.4"
@@ -171,6 +172,20 @@ der = "=0.8.0-rc.9"
171172
spki = "=0.8.0-rc.4"
172173
pem-rfc7468 = "=1.0.0-rc.3"
173174
signature = "=3.0.0-rc.4"
175+
p256 = "=0.14.0-pre.11"
176+
primefield = "=0.14.0-pre.6"
177+
primeorder = "=0.14.0-pre.9"
178+
p384 = "=0.14.0-pre.11"
179+
p521 = "=0.14.0-pre.11"
180+
crypto-primes = "=0.7.0-pre.3"
181+
182+
# "Zero-knowledge Cryptography in Rust" crates
183+
ff = { version = "=0.14.0-pre.0", default-features = false }
184+
group = "=0.14.0-pre.0"
185+
186+
# "dalek cryptography" crates
187+
ed25519-dalek = "=3.0.0-pre.1"
188+
curve25519-dalek = "=5.0.0-pre.1"
174189

175190
[dev-dependencies]
176191
base64.workspace = true

crates/dpapi/Cargo.toml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ sspi = { path = "../..", version = "0.18" } # public
4242

4343
kbkdf = "0.0.1"
4444
elliptic-curve = { version = "=0.14.0-rc.15", features = ["sec1", "std"] }
45-
p521 = { version = "0.14.0-pre.11", features = ["ecdh"] }
46-
p256 = { version = "0.14.0-pre.11", features = ["ecdh"] }
47-
p384 = { version = "0.14.0-pre.11", features = ["ecdh"] }
45+
p521 = { version = "=0.14.0-pre.11", features = ["ecdh"] }
46+
p256 = { version = "=0.14.0-pre.11", features = ["ecdh"] }
47+
p384 = { version = "=0.14.0-pre.11", features = ["ecdh"] }
4848
concat-kdf = { git = "https://github.com/RustCrypto/KDFs.git", rev = "f2f5c03" } # TODO: We need the new version, but it's not released yet.
4949
typenum = "1.18"
5050
aes-kw = "=0.3.0-rc.1"
@@ -77,6 +77,23 @@ ctr = "=0.10.0-rc.1"
7777
ghash = "=0.6.0-rc.2"
7878
polyval = "=0.7.0-rc.2"
7979
universal-hash = "=0.6.0-rc.2"
80+
ed25519 ="=3.0.0-rc.1"
81+
cbc = "=0.2.0-rc.1"
82+
des = "=0.9.0-rc.1"
83+
pbkdf2 = "=0.13.0-rc.1"
84+
md-5 = "=0.11.0-rc.2"
85+
keccak = "=0.2.0-rc.0"
86+
pkcs1 = "=0.8.0-rc.4"
87+
rsa = "=0.10.0-rc.9"
88+
sha3 = "=0.11.0-rc.3"
89+
ff = { version = "=0.14.0-pre.0", default-features = false }
90+
group = "=0.14.0-pre.0"
91+
primefield = "=0.14.0-pre.6"
92+
primeorder = "=0.14.0-pre.9"
93+
ed25519-dalek = "=3.0.0-pre.1"
94+
curve25519-dalek = "=5.0.0-pre.1"
95+
crypto-primes = "=0.7.0-pre.3"
96+
x25519-dalek = "=3.0.0-pre.1"
8097

8198
[dev-dependencies]
8299
paste = "1.0"

0 commit comments

Comments
 (0)