Skip to content

Commit bdbc8d6

Browse files
committed
p256+p384: fixup benches
1 parent 5ecd471 commit bdbc8d6

File tree

4 files changed

+32
-4
lines changed

4 files changed

+32
-4
lines changed

.github/workflows/p256.yml

+14
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,20 @@ jobs:
5151
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features voprf
5252
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic,bits,ecdh,ecdsa,hash2curve,jwk,pem,pkcs8,serde,sha256,voprf
5353

54+
benches:
55+
runs-on: ubuntu-latest
56+
strategy:
57+
matrix:
58+
rust:
59+
- 1.85.0 # MSRV
60+
- stable
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: dtolnay/rust-toolchain@master
64+
with:
65+
toolchain: ${{ matrix.rust }}
66+
- run: cargo build --all-features --benches
67+
5468
test:
5569
runs-on: ubuntu-latest
5670
strategy:

.github/workflows/p384.yml

+14
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ jobs:
4848
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features voprf
4949
- run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdsa-core,hash2curve,jwk,pem,pkcs8,serde,sha384,voprf
5050

51+
benches:
52+
runs-on: ubuntu-latest
53+
strategy:
54+
matrix:
55+
rust:
56+
- 1.85.0 # MSRV
57+
- stable
58+
steps:
59+
- uses: actions/checkout@v4
60+
- uses: dtolnay/rust-toolchain@master
61+
with:
62+
toolchain: ${{ matrix.rust }}
63+
- run: cargo build --all-features --benches
64+
5165
test:
5266
runs-on: ubuntu-latest
5367
strategy:

p256/benches/field.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ use p256::FieldElement;
88

99
fn test_field_element_x() -> FieldElement {
1010
FieldElement::from_bytes(
11-
&hex!("1ccbe91c075fc7f4f033bfa248db8fccd3565de94bbfb12f3c59ff46c271bf83").into(),
11+
hex!("1ccbe91c075fc7f4f033bfa248db8fccd3565de94bbfb12f3c59ff46c271bf83").into(),
1212
)
1313
.unwrap()
1414
}
1515

1616
fn test_field_element_y() -> FieldElement {
1717
FieldElement::from_bytes(
18-
&hex!("ce4014c68811f9a21a1fdb2c0e6113e06db7ca93b7404e78dc7ccd5ca89a4ca9").into(),
18+
hex!("ce4014c68811f9a21a1fdb2c0e6113e06db7ca93b7404e78dc7ccd5ca89a4ca9").into(),
1919
)
2020
.unwrap()
2121
}

p384/benches/field.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ use p384::FieldElement;
88

99
fn test_field_element_x() -> FieldElement {
1010
FieldElement::from_bytes(
11-
hex!("c2b47944fb5de342d03285880177ca5f7d0f2fcad7678cce4229d6e1932fcac11bfc3c3e97d942a3c56bf34123013dbf").into()
11+
&hex!("c2b47944fb5de342d03285880177ca5f7d0f2fcad7678cce4229d6e1932fcac11bfc3c3e97d942a3c56bf34123013dbf").into()
1212
)
1313
.unwrap()
1414
}
1515

1616
fn test_field_element_y() -> FieldElement {
1717
FieldElement::from_bytes(
18-
hex!("37257906a8223866eda0743c519616a76a758ae58aee81c5fd35fbf3a855b7754a36d4a0672df95d6c44a81cf7620c2d").into()
18+
&hex!("37257906a8223866eda0743c519616a76a758ae58aee81c5fd35fbf3a855b7754a36d4a0672df95d6c44a81cf7620c2d").into()
1919
)
2020
.unwrap()
2121
}

0 commit comments

Comments
 (0)