Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Dec 20, 2025

This imports all of the const fn constructor and predication/selection methods crypto-bigint needs to replace crypto_bigint::ConstChoice with ctutils::Choice, along with extant tests.

tarcieri added a commit to RustCrypto/crypto-bigint that referenced this pull request Dec 20, 2025
Depends on RustCrypto/utils#1266

Extracts all of the `const fn` constructor and predication/selection
methods used by `crypto-bigint` into the `ctutils` crate, allowing the
`ConstChoice` type to be removed and replaced by `ctutils::Choice`.
@tarcieri tarcieri force-pushed the ctutils/crypto-bigint-methods branch from 09cce25 to 5d2fc4d Compare December 20, 2025 05:52
tarcieri added a commit to RustCrypto/crypto-bigint that referenced this pull request Dec 20, 2025
Depends on RustCrypto/utils#1266

Extracts all of the `const fn` constructor and predication/selection
methods used by `crypto-bigint` into the `ctutils` crate, allowing the
`ConstChoice` type to be removed and replaced by `ctutils::Choice`.
@tarcieri tarcieri force-pushed the ctutils/crypto-bigint-methods branch from 5d2fc4d to 4f732b7 Compare December 20, 2025 19:12
tarcieri added a commit to RustCrypto/crypto-bigint that referenced this pull request Dec 20, 2025
Depends on RustCrypto/utils#1266

Extracts all of the `const fn` constructor and predication/selection
methods used by `crypto-bigint` into the `ctutils` crate, allowing the
`ConstChoice` type to be removed and replaced by `ctutils::Choice`.
tarcieri added a commit to RustCrypto/crypto-bigint that referenced this pull request Dec 20, 2025
Depends on RustCrypto/utils#1266

Extracts all of the `const fn` constructor and predication/selection
methods used by `crypto-bigint` into the `ctutils` crate, allowing the
`ConstChoice` type to be removed and replaced by `ctutils::Choice`.
tarcieri added a commit to RustCrypto/crypto-bigint that referenced this pull request Dec 20, 2025
Depends on RustCrypto/utils#1266

Extracts all of the `const fn` constructor and predication/selection
methods used by `crypto-bigint` into the `ctutils` crate, allowing the
`ConstChoice` type to be removed and replaced by `ctutils::Choice`.
tarcieri added a commit to RustCrypto/crypto-bigint that referenced this pull request Dec 20, 2025
Depends on RustCrypto/utils#1266

Extracts all of the `const fn` constructor and predication/selection
methods used by `crypto-bigint` into the `ctutils` crate, allowing the
`ConstChoice` type to be removed and replaced by `ctutils::Choice`.
@tarcieri tarcieri force-pushed the ctutils/crypto-bigint-methods branch from 4f732b7 to 5101c8c Compare December 20, 2025 19:54
@tarcieri tarcieri changed the title [WIP] ctutils: import Choice methods from crypto-bigint ctutils: import Choice methods from crypto-bigint Dec 20, 2025
@tarcieri tarcieri marked this pull request as ready for review December 20, 2025 19:55
@tarcieri tarcieri force-pushed the ctutils/crypto-bigint-methods branch 3 times, most recently from e3b5746 to 325e764 Compare December 20, 2025 20:12
tarcieri added a commit to RustCrypto/crypto-bigint that referenced this pull request Dec 20, 2025
Depends on RustCrypto/utils#1266

Extracts all of the `const fn` constructor and predication/selection
methods used by `crypto-bigint` into the `ctutils` crate, allowing the
`ConstChoice` type to be removed and replaced by `ctutils::Choice`.
This imports all of the `const fn` constructor and predication/selection
methods `crypto-bigint` needs to replace `crypto_bigint::ConstChoice`
with `ctutils::Choice`, along with extant tests, and adds additional
tests for better coverage.
@tarcieri tarcieri force-pushed the ctutils/crypto-bigint-methods branch from 325e764 to 295486a Compare December 20, 2025 20:20
@tarcieri tarcieri merged commit 5d2e2fd into master Dec 20, 2025
11 checks passed
@tarcieri tarcieri deleted the ctutils/crypto-bigint-methods branch December 20, 2025 20:23
tarcieri added a commit to RustCrypto/crypto-bigint that referenced this pull request Dec 20, 2025
Depends on RustCrypto/utils#1266

Extracts all of the `const fn` constructor and predication/selection
methods used by `crypto-bigint` into the `ctutils` crate, allowing the
`ConstChoice` type to be removed and replaced by `ctutils::Choice`.
tarcieri added a commit to RustCrypto/crypto-bigint that referenced this pull request Dec 24, 2025
Extracts all of the `const fn` constructor and predication/selection
methods used by `crypto-bigint` into the `ctutils` crate, allowing the
`ConstChoice` type to be removed and replaced by `ctutils::Choice`.

See RustCrypto/utils#1266 for the PR which adds these methods to
`ctutils`.
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