Skip to content

Conversation

@tarcieri
Copy link
Member

Adds bidirectional From conversions for the following:

  • ctutils::Choice <=> subtle::Choice
  • ctutils::CtOption <=> subtle::CtOption

Support is gated under an optional subtle feature.

This will simplify using ctutils in codebases that are already using subtle such as crypto-bigint (the main place it seems interesting to actually attempt to use it).

Adds bidirectional `From` conversions for the following:
- `ctutils::Choice` <=> `subtle::Choice`
- `ctutils::CtOption` <=> `subtle::CtOption`

Support is gated under an optional `subtle` feature.

This will simplify using `ctutils` in codebases that are already using
`subtle` such as `crypto-bigint` (the main place it seems interesting to
actually attempt to use it).
@tarcieri tarcieri merged commit 04b1690 into master Dec 20, 2025
120 of 121 checks passed
@tarcieri tarcieri deleted the ctutils/subtle-interop branch December 20, 2025 01:50
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