Skip to content

add EcPointRef::to_hex_str and EcPoint::from_hex_str #2000

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

Merged
merged 1 commit into from
Jul 23, 2023

Conversation

zh-jq
Copy link
Contributor

@zh-jq zh-jq commented Jul 20, 2023

@zh-jq zh-jq force-pushed the ec_point_to_hex_str branch 2 times, most recently from 91878f0 to 8029016 Compare July 20, 2023 08:11
/// Creates point from a hexadecimal string representation
#[corresponds(EC_POINT_hex2point)]
#[cfg(not(boringssl))]
pub fn from_hex_str(
Copy link
Owner

Choose a reason for hiding this comment

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

I think we'd want this to take &mut self rather than being a static method taking the group.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The definition is the same as EcPoint::from_bytes. For a &mut self method, it seems the name set_from_hex_str is more suited.

@zh-jq zh-jq force-pushed the ec_point_to_hex_str branch from 8029016 to ebf8027 Compare July 21, 2023 02:47
@sfackler sfackler merged commit 99bce5b into sfackler:master Jul 23, 2023
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