Skip to content

Commit

Permalink
p521: remove pub from arithmetic module (#961)
Browse files Browse the repository at this point in the history
The relevant types from the `arithmetic` module are available via
re-exports, so direct access to the module is unnecessary. It was
accidentally exposed in the v0.13.1 release (#958).

Exposing the module directly is inconsistent with p192/p224/p256/p384,
so this removes it. This is technically a breaking change, but it was
added in v0.13.1 which was released a few minutes ago, and will be
yanked after this is released.
  • Loading branch information
tarcieri authored Nov 10, 2023
1 parent 4085b35 commit c3deb5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion p521/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)]

#[cfg(feature = "arithmetic")]
pub mod arithmetic;
mod arithmetic;

#[cfg(feature = "ecdh")]
pub mod ecdh;
Expand Down
2 changes: 1 addition & 1 deletion p521/tests/projective.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use elliptic_curve::{
sec1::{self, ToEncodedPoint},
};
use p521::{
arithmetic::{AffinePoint, ProjectivePoint, Scalar},
test_vectors::group::{ADD_TEST_VECTORS, MUL_TEST_VECTORS},
AffinePoint, ProjectivePoint, Scalar,
};
use primeorder::{impl_projective_arithmetic_tests, Double};

Expand Down

0 comments on commit c3deb5a

Please sign in to comment.