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

Add EC_Scalar and EC_AffinePoint types #4042

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

randombit
Copy link
Owner

@randombit randombit commented May 5, 2024

This is the other side of #3979 where we push the interface that's exposed to the rest of the library to a non-BigInt oriented model.

#4027

@randombit randombit requested a review from reneme May 5, 2024 19:28
@randombit randombit changed the title Jack/new ec types Add EC_Scalar and EC_AffinePoint types May 5, 2024
@randombit randombit force-pushed the jack/new-ec-types branch 2 times, most recently from 03b58cd to bae2ce8 Compare May 5, 2024 19:54
@coveralls
Copy link

coveralls commented May 5, 2024

Coverage Status

coverage: 91.789% (-0.02%) from 91.812%
when pulling acca7bb on jack/new-ec-types
into e101afd on master.

@randombit randombit force-pushed the jack/new-ec-types branch 4 times, most recently from a70db6d to b09a762 Compare May 6, 2024 11:55
@randombit randombit force-pushed the jack/new-ec-types branch 6 times, most recently from 4db015d to b594b6b Compare May 19, 2024 11:21
@randombit randombit added this to the Botan 3.5.0 milestone May 22, 2024
@randombit randombit force-pushed the jack/new-ec-types branch 2 times, most recently from 2e230e4 to d5fa5d9 Compare May 24, 2024 20:12
src/lib/pubkey/ec_group/ec_apoint.h Outdated Show resolved Hide resolved

Mul2Table(const EC_AffinePoint& h);

std::optional<EC_AffinePoint> mul2(const EC_Scalar& x, const EC_Scalar& y) const;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Document the conditions this returns none

src/lib/pubkey/ec_group/ec_inner_data.h Outdated Show resolved Hide resolved

static std::vector<uint8_t> serialize_pair(const EC_Scalar& r, const EC_Scalar& s);

std::vector<uint8_t> serialize() const;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fully doc comment these

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.

None yet

2 participants