Skip to content

Commit 391b600

Browse files
authored
Enhance ecp and pk module (#344)
* add functionalities - Add a function to access `Z` field of `EcPoint`. - Add a newer version of `EcPoint::mul` with RNG for blinding. - Also marked old version one as deprecated. - Add a newer version of `Pk::private_from_ec_components` with RNG for blinding. - Also marked old version one as deprecated. - Update tests to use above new functions. - Add a function for performing const time comparison of `EcPoint`. * bump mbedtls version to 0.12.3 * add test for fn `eq_const_time` * add bench to ensure eq_const_time works * add cargo bench to CI
1 parent 21056b8 commit 391b600

File tree

6 files changed

+663
-26
lines changed

6 files changed

+663
-26
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,18 @@ jobs:
117117
cargo fmt --check -p mbedtls
118118
cargo fmt --check -p mbedtls-platform-support
119119
cargo fmt --check -p mbedtls-sys-auto
120+
121+
bench:
122+
name: Cargo bench
123+
runs-on: ubuntu-latest
124+
steps:
125+
- uses: actions/checkout@v3
126+
- uses: dtolnay/rust-toolchain@master
127+
with:
128+
toolchain: stable
129+
- name: Run cargo bench
130+
run: cargo bench
131+
120132
ci-success:
121133
name: ci
122134
if: always()

0 commit comments

Comments
 (0)