Skip to content

Conversation

@tarcieri
Copy link
Member

Uses crypto-bigint's stack-allocated Montgomery form types to define group constants, including adding an impl of ConstMontyParams to them.

This precomputes all of their Montgomery form constants at compile-time, meaning initializing a BoxedMontyForm (for now, since it's the only thing that currently has modpow) can use the precomputed constants.

This is also the first step towards supporting a fully stack allocated implementation (#248).

Uses `crypto-bigint`'s stack-allocated Montgomery form types to define
group constants, including adding an impl of `ConstMontyParams` to them.

This precomputes all of their Montgomery form constants at compile-time,
meaning initializing a `BoxedMontyForm` (for now, since it's the only
thing that currently has modpow) can use the precomputed constants.

This is also the first step towards supporting a fully stack allocated
implementation (#248).
@tarcieri tarcieri force-pushed the srp/const-monty-groups branch from bdec5b1 to 4baa7a0 Compare January 14, 2026 02:08
@tarcieri tarcieri merged commit 4f4c1f5 into master Jan 14, 2026
21 checks passed
@tarcieri tarcieri deleted the srp/const-monty-groups branch January 14, 2026 02:13
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