Skip to content

Add SecretPrime type alias - #716

Merged
tarcieri merged 1 commit into
masterfrom
add-secretprime-type-alias
Oct 12, 2026
Merged

tarcieri merged 1 commit into
masterfrom
add-secretprime-type-alias

Conversation

@tarcieri

Copy link
Copy Markdown
Member

Partially resolves the zeroization problems around PrecomputedValues by storing p and q as MontyParams<BoxedUint>, which avoids the problems surrounding the Arc.

It doesn't completely address the issue though, as several APIs still need a proper BoxedMontyParams input which we don't yet erase.

We need to provide an API that's able to obtain exclusive access to the Arc in certain cases that can erase these intermediates, but for now this at least allows the Zeroize impl for PrecomputedValues to be complete.

Partially resolves the zeroization problems around `PrecomputedValues`
by storing `p` and `q` as `MontyParams<BoxedUint>`, which avoids the
problems surrounding the `Arc`.

It doesn't completely address the issue though, as several APIs still
need a proper `BoxedMontyParams` input which we don't yet erase.

We need to provide an API that's able to obtain exclusive access to the
`Arc` in certain cases that can erase these intermediates, but for now
this at least allows the `Zeroize` impl for `PrecomputedValues` to be
complete.
@tarcieri
tarcieri requested a review from baloo October 12, 2026 20:06
@tarcieri
tarcieri merged commit 4506828 into master Oct 12, 2026
12 checks passed
@tarcieri
tarcieri deleted the add-secretprime-type-alias branch October 12, 2026 20:41
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.

1 participant