From b8e9e554797c43f9500bacee7e4ab05dfba94d2e Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Tue, 25 Feb 2025 23:48:07 -0800 Subject: [PATCH] sm2: can't easily test for other targets because of getrandom backends wasm requires a feature flag explicitely for wasm and a rustcfg flag Thumbv7 doesn't have off-the-shelf backend for getrandom --- .github/workflows/sm2.yml | 22 ---------------------- Cargo.lock | 3 ++- sm2/README.md | 4 ---- 3 files changed, 2 insertions(+), 27 deletions(-) diff --git a/.github/workflows/sm2.yml b/.github/workflows/sm2.yml index 635c67ed2..8740b0751 100644 --- a/.github/workflows/sm2.yml +++ b/.github/workflows/sm2.yml @@ -19,28 +19,6 @@ env: RUSTDOCFLAGS: "-Dwarnings" jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - rust: - - 1.85.0 # MSRV - - stable - target: - - thumbv7em-none-eabi - - wasm32-unknown-unknown - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.rust }} - targets: ${{ matrix.target }} - - run: cargo build --target ${{ matrix.target }} --release --no-default-features - - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc - - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic - - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pkcs8 - - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,arithmetic,pkcs8 - test: runs-on: ubuntu-latest strategy: diff --git a/Cargo.lock b/Cargo.lock index 3de212328..6aa6ff84e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -357,7 +357,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.17.0-pre.9" -source = "git+https://github.com/baloo/signatures.git?branch=baloo/edition-2024#6ad65c783d611cdf6c8ac65b141e726e9ca85341" +source = "git+https://github.com/RustCrypto/signatures.git#0e69f92b566383ed4b5ecd176536428d0f60d499" dependencies = [ "der", "digest", @@ -1110,6 +1110,7 @@ name = "sm2" version = "0.14.0-pre" dependencies = [ "elliptic-curve", + "getrandom 0.3.1", "hex-literal", "primeorder", "proptest", diff --git a/sm2/README.md b/sm2/README.md index 0a30a7693..020944063 100644 --- a/sm2/README.md +++ b/sm2/README.md @@ -35,10 +35,6 @@ The SM2 cryptosystem is composed of three distinct algorithms: - [ ] **SM2KEP**: key exchange protocol defined in [GBT.32918.3-2016] (SM2-3) - [x] **SM2PKE**: public key encryption algorithm defined in [GBT.32918.4-2016] (SM2-4) -## SemVer Policy - -- All on-by-default features of this library are covered by SemVer - ## License All crates licensed under either of