Skip to content

Commit

Permalink
Rename Curve::ElementSize => FieldSize (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri authored Sep 2, 2020
1 parent b10c96b commit 1fc16c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion k256/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub struct Secp256k1;

impl elliptic_curve::Curve for Secp256k1 {
/// 256-bit (32-byte)
type ElementSize = U32;
type FieldSize = U32;
}

impl elliptic_curve::weierstrass::Curve for Secp256k1 {
Expand Down
2 changes: 1 addition & 1 deletion p256/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub struct NistP256;

impl elliptic_curve::Curve for NistP256 {
/// 256-bit (32-byte)
type ElementSize = U32;
type FieldSize = U32;
}

impl elliptic_curve::weierstrass::Curve for NistP256 {
Expand Down
2 changes: 1 addition & 1 deletion p384/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct NistP384;

impl elliptic_curve::Curve for NistP384 {
/// 384-bit (48-byte)
type ElementSize = U48;
type FieldSize = U48;
}

#[cfg(feature = "oid")]
Expand Down

0 comments on commit 1fc16c4

Please sign in to comment.