Skip to content

curve: add precomputation length#685

Merged
rozbb merged 2 commits into
dalek-cryptography:mainfrom
AaronFeickert:precomp-len
Jan 12, 2025
Merged

curve: add precomputation length#685
rozbb merged 2 commits into
dalek-cryptography:mainfrom
AaronFeickert:precomp-len

Conversation

@AaronFeickert

Copy link
Copy Markdown
Contributor

Adds functionality to VartimePrecomputedMultiscalarMul to return the number of points in the precomputation.

@AaronFeickert
AaronFeickert force-pushed the precomp-len branch 3 times, most recently from 042ea16 to 9781bba Compare August 3, 2024 03:09
@AaronFeickert
AaronFeickert force-pushed the precomp-len branch 2 times, most recently from 6f7001c to faf1f6d Compare January 3, 2025 18:27
@AaronFeickert

Copy link
Copy Markdown
Contributor Author

This has been updated to account for the changes in #695, and should be good to go.

@rozbb

rozbb commented Jan 4, 2025

Copy link
Copy Markdown
Contributor

LGTM! Can I ask, what was the motivation to add these methods?

@AaronFeickert

Copy link
Copy Markdown
Contributor Author

@rozbb: I was working on a project that used partial precomputation, and for which it would be useful to know the size of an existing precomputation table in order to determine if it was valid for a given use case.

@rozbb

rozbb commented Jan 5, 2025

Copy link
Copy Markdown
Contributor

Ah, ok, sounds good!

@rozbb
rozbb requested review from rozbb and tarcieri January 5, 2025 00:10
Comment thread curve25519-dalek/src/backend/mod.rs
@rozbb
rozbb merged commit ed83542 into dalek-cryptography:main Jan 12, 2025
@AaronFeickert
AaronFeickert deleted the precomp-len branch January 12, 2025 04:55
astefano added a commit to Beneficial-AI-Foundation/curve25519-dalek that referenced this pull request Mar 22, 2026
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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