Skip to content

Commit 5e339a4

Browse files
authored
Bump rand_core to v0.10.0 (#1642)
Release notes: https://github.com/rust-random/rand_core/releases/tag/v0.10.0 Also bumps the following: - `chacha20` v0.10.0-rc.10 - `crypto-bigint` v0.7.0-rc.24 - `crypto-common` v0.2.0-rc.14 - `digest` v0.11.0-rc.10 - `ecdsa` v0.17.0-rc.15 - `elliptic-curve` v0.14.0-rc.27 - `signature` v3.0.0-rc.10 This includes `wrapping_sh*` => `unbounded_sh*` changes that preserve the original behavior of our implementation after this change: RustCrypto/crypto-bigint#1160 This also unfortunately includes the migration to `cpubits!` as it's part of this `crypto-bigint` release.
1 parent 51f5187 commit 5e339a4

File tree

42 files changed

+833
-450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+833
-450
lines changed

.github/workflows/k256.yml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,30 @@ jobs:
3232
rust:
3333
- 1.85.0 # MSRV
3434
- stable
35-
target:
36-
- thumbv7em-none-eabi
37-
- wasm32-unknown-unknown
3835
steps:
3936
- uses: actions/checkout@v6
4037
- uses: dtolnay/rust-toolchain@master
4138
with:
4239
toolchain: ${{ matrix.rust }}
43-
targets: ${{ matrix.target }}
44-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
45-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc
46-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic
47-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features bits
48-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features critical-section
49-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdh
50-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdsa-core
51-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdsa
52-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features hash2curve
53-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features group-digest
54-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pem
55-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pkcs8
56-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features schnorr
57-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features serde
58-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features sha256
59-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdsa
60-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdsa,sha256
61-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features bits,critical-section,ecdh,ecdsa,group-digest,pem,pkcs8,schnorr,serde,sha256
40+
targets: thumbv7em-none-eabi
41+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features
42+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features alloc
43+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features arithmetic
44+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features bits
45+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features critical-section
46+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features ecdh
47+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features ecdsa-core
48+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features ecdsa
49+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features hash2curve
50+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features group-digest
51+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features pem
52+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features pkcs8
53+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features schnorr
54+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features serde
55+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features sha256
56+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features ecdsa
57+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features ecdsa,sha256
58+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features bits,critical-section,ecdh,ecdsa,group-digest,pem,pkcs8,schnorr,serde,sha256
6259

6360
benches:
6461
runs-on: ubuntu-latest

.github/workflows/p256.yml

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,30 +32,27 @@ jobs:
3232
rust:
3333
- 1.85.0 # MSRV
3434
- stable
35-
target:
36-
- thumbv7em-none-eabi
37-
- wasm32-unknown-unknown
3835
steps:
3936
- uses: actions/checkout@v6
4037
- uses: dtolnay/rust-toolchain@master
4138
with:
4239
toolchain: ${{ matrix.rust }}
43-
targets: ${{ matrix.target }}
44-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features
45-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc
46-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic
47-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features bits
48-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdh
49-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdsa-core
50-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdsa
51-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features hash2curve
52-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features group-digest
53-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features oprf
54-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pem
55-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pkcs8
56-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features serde
57-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features sha256
58-
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic,bits,ecdh,ecdsa,group-digest,oprf,pem,pkcs8,serde,sha256
40+
targets: thumbv7em-none-eabi
41+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features
42+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features alloc
43+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features arithmetic
44+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features bits
45+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features ecdh
46+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features ecdsa-core
47+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features ecdsa
48+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features hash2curve
49+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features group-digest
50+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features oprf
51+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features pem
52+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features pkcs8
53+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features serde
54+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features sha256
55+
- run: cargo build --target thumbv7em-none-eabi --release --no-default-features --features arithmetic,bits,ecdh,ecdsa,group-digest,oprf,pem,pkcs8,serde,sha256
5956

6057
benches:
6158
runs-on: ubuntu-latest

Cargo.lock

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

bignp256/Cargo.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,26 @@ edition = "2024"
1818
rust-version = "1.85"
1919

2020
[dependencies]
21-
elliptic-curve = { version = "0.14.0-rc.24", features = ["sec1"] }
21+
elliptic-curve = { version = "0.14.0-rc.27", features = ["sec1"] }
2222

2323
# optional dependencies
2424
belt-hash = { version = "0.2.0-rc.0", optional = true, default-features = false }
2525
der = { version = "0.8.0-rc.10" }
26-
digest = { version = "0.11.0-rc.7", optional = true }
26+
digest = { version = "0.11.0-rc.10", optional = true }
2727
hex-literal = { version = "1", optional = true }
2828
hkdf = { version = "0.13.0-rc.4", optional = true }
2929
hmac = { version = "0.13.0-rc.4", optional = true }
30-
rand_core = "0.10.0-rc-6"
30+
rand_core = "0.10"
3131
rfc6979 = { version = "0.5.0-rc.4", optional = true }
3232
pkcs8 = { version = "0.11.0-rc.10", optional = true }
3333
primefield = { version = "0.14.0-rc.6", optional = true }
3434
primeorder = { version = "0.14.0-rc.6", optional = true }
3535
sec1 = { version = "0.8.0-rc.13", optional = true }
36-
signature = { version = "3.0.0-rc.9", optional = true }
36+
signature = { version = "3.0.0-rc.10", optional = true }
3737

3838
[dev-dependencies]
3939
criterion = "0.7"
40-
elliptic-curve = { version = "0.14.0-rc.24", default-features = false, features = ["dev"] }
40+
elliptic-curve = { version = "0.14.0-rc.27", default-features = false, features = ["dev"] }
4141
hex-literal = "1"
4242
primeorder = { version = "0.14.0-rc.6", features = ["dev"] }
4343
proptest = "1"
@@ -57,6 +57,10 @@ ecdh = ["arithmetic", "elliptic-curve/ecdh", "dep:digest", "dep:hkdf", "dep:hmac
5757
serde = ["elliptic-curve/serde", "primeorder?/serde"]
5858
test-vectors = ["dep:hex-literal"]
5959

60+
[lints.rust.unexpected_cfgs]
61+
level = "warn"
62+
check-cfg = ['cfg(cpubits, values("16", "32", "64"))']
63+
6064
[[bench]]
6165
name = "field"
6266
harness = false

0 commit comments

Comments
 (0)