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

Accessor function for public key structure in mbedtls_ecp_keypair #5441

Closed
stevew817 opened this issue Jan 20, 2022 · 1 comment · Fixed by #7815
Closed

Accessor function for public key structure in mbedtls_ecp_keypair #5441

stevew817 opened this issue Jan 20, 2022 · 1 comment · Fixed by #7815
Assignees
Labels
component-crypto Crypto primitives and low-level interfaces enhancement good-first-issue Good for newcomers size-s Estimated task size: small (~2d)

Comments

@stevew817
Copy link
Contributor

stevew817 commented Jan 20, 2022

Suggested enhancement

Either a direct accessor function to retrieve the public component of an mbedtls_ecp_keypair, or a function to write out the public key to a binary buffer. Similarly, a way to create an mbedtls_ecp_keypair structure containing only the public part of the key.

Justification

Mbed TLS needs this because the public key component was made private.

@mike-rus
Copy link

mike-rus commented Feb 11, 2022

@stevew817, Just to clarify the issue, the public part of the key consists of two ECP point coordinates, do you suggest returning them separately or concatenate them to one common binary buffer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-crypto Crypto primitives and low-level interfaces enhancement good-first-issue Good for newcomers size-s Estimated task size: small (~2d)
Projects
Status: [3.6] Mbed TLS PRIVATE
Development

Successfully merging a pull request may close this issue.

4 participants