Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor pcurves affine conversions and inversion usage #4217

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

randombit
Copy link
Owner

We did not consistently take advantage of any optimized addition chain for inversions, particularly in table setup and hash to curve code.

Also refactor hash to curve such that we avoid a pointless affine conversion in the NU case; previously we returned a projective point even in that case, then later converted it to affine.

@randombit randombit force-pushed the jack/affine-this-you-filthy-casual branch 3 times, most recently from f8c482e to 1c74f21 Compare July 15, 2024 22:18
@coveralls
Copy link

coveralls commented Jul 15, 2024

Coverage Status

coverage: 91.63% (+0.006%) from 91.624%
when pulling 709ffed on jack/affine-this-you-filthy-casual
into 0d4969a on master.

@randombit randombit requested a review from reneme July 16, 2024 07:21
@randombit randombit added this to the Botan 3.6.0 milestone Jul 16, 2024
@randombit randombit force-pushed the jack/affine-this-you-filthy-casual branch from 1c74f21 to ea9b922 Compare July 26, 2024 14:58
We did not consistently take advantage of any optimized addition chain
for inversions, particularly in table setup and hash to curve code.

Also refactor hash to curve such that we avoid a pointless affine
conversion in the NU case; previously we returned a projective point
even in that case, then later converted it to affine.
@randombit randombit force-pushed the jack/affine-this-you-filthy-casual branch from ea9b922 to 709ffed Compare July 31, 2024 21:34
@randombit
Copy link
Owner Author

@reneme ping

@randombit randombit merged commit c319901 into master Aug 9, 2024
39 checks passed
@randombit randombit deleted the jack/affine-this-you-filthy-casual branch August 9, 2024 21:21
randombit added a commit that referenced this pull request Aug 10, 2024
This was deleted in #4263 then resurrected after a rebase in #4217
thillux pushed a commit to thillux/botan that referenced this pull request Aug 16, 2024
This was deleted in randombit#4263 then resurrected after a rebase in randombit#4217
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