cipher: improve encrypt_padded_vec methods
#3698
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: elliptic-curve | |
| on: | |
| pull_request: | |
| paths: | |
| - ".github/workflows/elliptic-curve.yml" | |
| - "elliptic-curve/**" | |
| - "Cargo.*" | |
| push: | |
| branches: master | |
| defaults: | |
| run: | |
| working-directory: elliptic-curve | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| RUSTFLAGS: "-Dwarnings" | |
| RUSTDOCFLAGS: "-Dwarnings" | |
| # Cancels CI jobs when new commits are pushed to a PR branch | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| 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@v6 | |
| - uses: RustCrypto/actions/cargo-cache@master | |
| - 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 bits | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features critical-section | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features dev | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features digest | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features ecdh | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pem | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features pkcs8 | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features sec1 | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features serde | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,arithmetic | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,arithmetic,pkcs8 | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,serde | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features arithmetic,serde | |
| - run: cargo build --target ${{ matrix.target }} --release --no-default-features --features alloc,digest,ecdh,pem,pkcs8,sec1,serde | |
| minimal-versions: | |
| # Temporarily disabled until elliptic-curve 0.14.0 is published | |
| if: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: RustCrypto/actions/cargo-cache@master | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly | |
| - uses: RustCrypto/actions/cargo-hack-install@master | |
| - run: cargo update -Z minimal-versions | |
| - run: cargo +stable build --release --all-features | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| rust: | |
| - 1.85.0 # MSRV | |
| - stable | |
| - nightly | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: RustCrypto/actions/cargo-cache@master | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - run: cargo check --all-features | |
| - run: cargo test --no-default-features | |
| - run: cargo test | |
| - run: cargo test --all-features | |
| test-careful: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - run: cargo install cargo-careful | |
| - run: cargo careful test --all-features | |
| test-miri: | |
| runs-on: ubuntu-latest | |
| env: | |
| MIRIFLAGS: "-Zmiri-symbolic-alignment-check -Zmiri-strict-provenance" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - run: rustup component add miri && cargo miri setup | |
| - run: cargo miri test --all-features |