Skip to content

Commit

Permalink
ecdsa: fix digest+hazmat feature combo (#283)
Browse files Browse the repository at this point in the history
Also CIs for `arithmetic`+`hazmat` and `digest`+`hazmat` feature combos
  • Loading branch information
tarcieri authored Apr 21, 2021
1 parent b11cfa3 commit f1f0e57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ecdsa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ jobs:
override: true
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
- run: cargo build --no-default-features --release --target ${{ matrix.target }} --features arithmetic
- run: cargo build --no-default-features --release --target ${{ matrix.target }} --features arithmetic,hazmat
- run: cargo build --no-default-features --release --target ${{ matrix.target }} --features dev
- run: cargo build --no-default-features --release --target ${{ matrix.target }} --features digest
- run: cargo build --no-default-features --release --target ${{ matrix.target }} --features digest,hazmat
- run: cargo build --no-default-features --release --target ${{ matrix.target }} --features hazmat
- run: cargo build --no-default-features --release --target ${{ matrix.target }} --features pkcs8
- run: cargo build --no-default-features --release --target ${{ matrix.target }} --features pem
Expand Down
6 changes: 2 additions & 4 deletions ecdsa/src/hazmat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
use {
crate::SignatureSize,
core::borrow::Borrow,
elliptic_curve::{
ff::PrimeField, ops::Invert, FieldBytes, Order, ProjectiveArithmetic, Scalar,
},
elliptic_curve::{ff::PrimeField, ops::Invert, FieldBytes, ProjectiveArithmetic, Scalar},
signature::Error,
};

Expand All @@ -27,7 +25,7 @@ use crate::signature::{digest::Digest, PrehashSignature};
#[cfg(any(feature = "arithmetic", feature = "digest"))]
use crate::{
elliptic_curve::{generic_array::ArrayLength, weierstrass::Curve},
Signature,
Order, Signature,
};

/// Try to sign the given prehashed message using ECDSA.
Expand Down

0 comments on commit f1f0e57

Please sign in to comment.