Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/elliptic-curve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ jobs:
- 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 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 wnaf
- 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
Expand All @@ -66,7 +64,7 @@ jobs:
with:
working-directory: ${{ github.workflow }}
stable-cmd: |
cargo hack check --feature-powerset --no-dev-deps --skip basepoint-table
cargo hack check --feature-powerset --no-dev-deps
cargo check --all-features

test:
Expand Down
34 changes: 0 additions & 34 deletions Cargo.lock

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

8 changes: 1 addition & 7 deletions elliptic-curve/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ ff = { version = "0.14", optional = true, default-features = false }
group = { version = "0.14", optional = true, default-features = false }
hkdf = { version = "0.13", optional = true, default-features = false }
hex-literal = { version = "1", optional = true }
once_cell = { version = "1.21", optional = true, default-features = false }
pem-rfc7468 = { version = "1", optional = true, features = ["alloc"] }
pkcs8 = { version = "0.11", optional = true, default-features = false }
sec1 = { version = "0.8", optional = true, features = ["ctutils", "subtle", "zeroize"] }
serdect = { version = "0.4", optional = true, default-features = false, features = ["alloc"] }
wnaf = { version = "0.14.0-pre.0", optional = true }

[dev-dependencies]
hex-literal = "1"
Expand All @@ -52,25 +50,21 @@ alloc = [
]
std = [
"alloc",
"once_cell?/std",
"pkcs8?/std",
"sec1?/std"
]

arithmetic = ["group"]
basepoint-table = ["arithmetic"]
critical-section = ["basepoint-table", "once_cell/critical-section"]
dev = ["arithmetic", "dep:hex-literal", "pem", "pkcs8"]
ecdh = ["arithmetic", "digest", "dep:hkdf"]
getrandom = ["arithmetic", "bigint/getrandom", "common/getrandom"]
group = ["dep:group", "ff"]
pkcs8 = ["dep:pkcs8", "sec1"]
pem = ["dep:pem-rfc7468", "alloc", "arithmetic", "pkcs8/pem", "sec1/pem"]
serde = ["dep:serdect", "alloc", "pkcs8", "sec1/serde"]
wnaf = ["alloc", "arithmetic", "dep:wnaf"]

[lints]
workspace = true

[package.metadata.docs.rs]
features = ["basepoint-table", "bits", "ecdh", "pem", "std"]
features = ["ecdh", "pem", "serde", "std"]
2 changes: 0 additions & 2 deletions elliptic-curve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ pub use zeroize;
pub use crate::error::{DecodeError, DecodeResult};
#[cfg(feature = "pkcs8")]
pub use pkcs8;
#[cfg(feature = "wnaf")]
pub use wnaf;
#[cfg(feature = "arithmetic")]
pub use {
crate::{
Expand Down
11 changes: 2 additions & 9 deletions elliptic-curve/src/point.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
//! Traits for elliptic curve points.

mod basepoint_table;
mod lookup_table;
mod non_identity;

#[cfg(all(feature = "basepoint-table", feature = "wnaf"))]
pub use self::basepoint_table::vartime::{BasepointTableVartime, PointWithBasepointTableVartime};
#[cfg(feature = "basepoint-table")]
pub use self::basepoint_table::{BasepointTable, PointWithBasepointTable};

#[cfg(feature = "arithmetic")]
pub use self::non_identity::NonIdentity;
use crate::{Curve, FieldBytes};
use subtle::{Choice, CtOption};
#[cfg(feature = "arithmetic")]
pub use {self::non_identity::NonIdentity, lookup_table::LookupTable};

#[cfg(feature = "arithmetic")]
use crate::CurveArithmetic;
Expand Down
193 changes: 0 additions & 193 deletions elliptic-curve/src/point/basepoint_table.rs

This file was deleted.

Loading
Loading