Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Sep 3, 2021

This is incremental work towards having a "one true scalar" type which is generic over elliptic curves, using crypto-bigint for the backing arithmetic.

It's presently called ScalarCore<C> to prevent it from conflicting with the existing Scalar<C>, however the goal is to completely replace the current Scalar<C>.

This PR also does the following:

  • Removes the ScalarBytes<C> type as ScalarCore<C> can subsume its previous use cases
  • Makes the zeroize crate a hard dependency (i.e. removes the zeroize feature, making it mandatory)

@tarcieri tarcieri force-pushed the elliptic-curve/generic-scalar branch 6 times, most recently from 65d003c to cad793f Compare September 3, 2021 17:19
This is incremental work towards having a "one true scalar" type which
is generic over elliptic curves, using `crypto-bigint` for the backing
arithmetic.

It's presently called `ScalarCore<C>` to prevent it from conflicting
with the existing `Scalar<C>`, however the goal is to completely replace
the current `Scalar<C>`.

This commit also does the following:

- Removes the `ScalarBytes<C>` type as `ScalarCore<C>` can subsume its
  previous use cases
- Makes the `zeroize` crate a hard dependency (i.e. removes the
  `zeroize` feature, making it mandatory)
@tarcieri tarcieri force-pushed the elliptic-curve/generic-scalar branch from cad793f to 79bb2a7 Compare September 3, 2021 17:21
@tarcieri tarcieri changed the title [WIP] elliptic-curve: generic scalar type elliptic-curve: add ScalarCore<C> type Sep 3, 2021
@tarcieri tarcieri marked this pull request as ready for review September 3, 2021 17:22
@tarcieri tarcieri merged commit c7c63d3 into master Sep 3, 2021
@tarcieri tarcieri deleted the elliptic-curve/generic-scalar branch September 3, 2021 17:36
tarcieri added a commit to RustCrypto/signatures that referenced this pull request Sep 3, 2021
tarcieri added a commit to RustCrypto/signatures that referenced this pull request Sep 3, 2021
tarcieri added a commit to RustCrypto/signatures that referenced this pull request Sep 3, 2021
tarcieri added a commit to RustCrypto/elliptic-curves that referenced this pull request Sep 3, 2021
Corresponding changes for:

- RustCrypto/traits#732
- RustCrypto/signatures#356

This is an initial step towards having a generic `Scalar<C>` type which
is reusable over elliptic curves.

As part of these changes, `zeroize` was made a mandatory dependency.
tarcieri added a commit to RustCrypto/elliptic-curves that referenced this pull request Sep 3, 2021
Corresponding changes for:

- RustCrypto/traits#732
- RustCrypto/signatures#356

This is an initial step towards having a generic `Scalar<C>` type which
is reusable over elliptic curves.

As part of these changes, `zeroize` was made a mandatory dependency.
tarcieri added a commit to RustCrypto/elliptic-curves that referenced this pull request Sep 3, 2021
)

Corresponding changes for:

- RustCrypto/traits#732
- RustCrypto/signatures#356

This is an initial step towards having a generic `Scalar<C>` type which
is reusable over elliptic curves.

As part of these changes, `zeroize` was made a mandatory dependency.
@tarcieri tarcieri mentioned this pull request Nov 20, 2021
scv35 added a commit to scv35/Signature-algorithms that referenced this pull request Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants