Skip to content

Commit

Permalink
p256: fix tests with hash2curve feature (#998)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri authored Dec 1, 2023
1 parent 7d9e2fe commit 0e128a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/p256.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ jobs:
- run: cargo check --target ${{ matrix.target }} --all-features
- run: cargo test --release --target ${{ matrix.target }} --no-default-features
- run: cargo test --release --target ${{ matrix.target }}
- run: cargo test --release --target ${{ matrix.target }} --features hash2curve
- run: cargo test --release --target ${{ matrix.target }} --all-features

cross:
Expand Down
3 changes: 2 additions & 1 deletion p256/src/arithmetic/hash2curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ impl FromOkm for Scalar {

#[cfg(test)]
mod tests {
use crate::{arithmetic::field::MODULUS, FieldElement, NistP256, Scalar, U256};
use super::FieldElement;
use crate::{arithmetic::field::MODULUS, NistP256, Scalar, U256};
use elliptic_curve::{
bigint::{ArrayEncoding, CheckedSub, NonZero, U384},
consts::U48,
Expand Down

0 comments on commit 0e128a9

Please sign in to comment.