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: RSA encryption #5161

Closed
mpg opened this issue Nov 12, 2021 · 1 comment · Fixed by #5525
Closed

PK: RSA encryption #5161

mpg opened this issue Nov 12, 2021 · 1 comment · Fixed by #5525
Assignees
Labels
enhancement size-s Estimated task size: small (~2d)

Comments

@mpg
Copy link
Contributor

mpg commented Nov 12, 2021

In library/pk_wrap.c, provide an implementation of rsa_encrypt_wrap using psa_asymmetric_encrypt() instead of mbedtls_rsa_pkcs1_decrypt() when MBEDTLS_USE_PSA_CRYPTO is enabled.

This will require creating a temporary PSA public key with appropriate permissions. An example of this can be found in ecdsa_verify_wrap() in the same file (note: there are two definitions of ecdsa_very_wrap(), we want to look at the one used with MBEDTLS_USE_PSA_CRYPTO).

Note: this function only handles RSA PKCS#1 v1.5, so no need to worry about OAEP here (which is actually not supported in PK so far).

Similar: #5159

@mpg mpg added enhancement Product Backlog size-s Estimated task size: small (~2d) labels Nov 12, 2021
@mpg mpg changed the title Use PSA for RSA PKCS#1 v1.5 encryption in PK PK: RSA encryption Dec 7, 2021
@superna9999 superna9999 mentioned this issue Feb 10, 2022
2 tasks
@superna9999
Copy link
Contributor

@mpg Can you assign me this issue and link #5525 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants