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

PK: use PSA to complete public key when USE_PSA is enabled. #7388

Closed
mpg opened this issue Apr 3, 2023 · 0 comments · Fixed by #7392
Closed

PK: use PSA to complete public key when USE_PSA is enabled. #7388

mpg opened this issue Apr 3, 2023 · 0 comments · Fixed by #7392
Assignees
Labels
component-crypto Crypto primitives and low-level interfaces enhancement size-s Estimated task size: small (~2d)

Comments

@mpg
Copy link
Contributor

mpg commented Apr 3, 2023

Context: see #6839; this is a step towards ECPa.PK.

Currently, pk_parse_key_sec1_der() will call mbedtls_ecp_mul() in some circumstances (public key not included, or not in a format we can read, namely compressed with some curves). This is a dependency on ECP arithmetic, which we're trying to avoid.

Instead, when MBEDTLS_USE_PSA_CRYPTO is enabled, we can use an approach based on psa_import() + psa_export_public(). Let's do that.

Prototype: #7357

@mpg mpg added enhancement component-crypto Crypto primitives and low-level interfaces size-m Estimated task size: medium (~1w) labels Apr 3, 2023
@valeriosetti valeriosetti self-assigned this Apr 3, 2023
@mpg mpg added size-s Estimated task size: small (~2d) and removed size-m Estimated task size: medium (~1w) labels Apr 4, 2023
@mpg mpg closed this as completed in #7392 Apr 11, 2023
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 size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants