Skip to content

Conversation

@tarcieri
Copy link
Member

Adds the methods crypto-bigint needs for WideWord on 64-bit platforms to Choice:

  • from_u128_le
  • from_u128_lsb
  • select_u128

It would probably be good if u128 had full parity with u32 and u64, but this just does what's needed for crypto-bigint for now.

Adds the methods `crypto-bigint` needs for `WideWord` on 64-bit
platforms to `Choice`:

- `from_u128_le`
- `from_u128_lsb`
- `select_u128`

It would probably be good if `u128` had full parity with `u32` and
`u64`, but this just does what's needed for `crypto-bigint` for now.
@tarcieri tarcieri merged commit da71cbc into master Dec 27, 2025
13 checks passed
@tarcieri tarcieri deleted the ctutils/choice-u128-methods branch December 27, 2025 03:43
@tarcieri tarcieri mentioned this pull request Dec 27, 2025
tarcieri added a commit that referenced this pull request Dec 27, 2025
### Added
- Additional methods for `CtOption` (#1274):
  - `some`
  - `none`
  - `into_option_copied`
  - `filter_by`
  - `as_inner_unchecked`
  - `to_inner_unchecked`
- `Default` impl for `CtOption` (#1274)
- `map!` and `unwrap_or!` macros (#1274)
- `u128` methods for `Choice` (#1277):
  - `from_u128_le`
  - `from_u128_lsb`
  - `select_u128`
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