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

Importing partial RSA private keys #105

Closed
gilles-peskine-arm opened this issue May 29, 2024 · 1 comment
Closed

Importing partial RSA private keys #105

gilles-peskine-arm opened this issue May 29, 2024 · 1 comment
Labels
enhancement New feature or request needs-design-approval Needs design discussion / approval

Comments

@gilles-peskine-arm
Copy link

gilles-peskine-arm commented May 29, 2024

The PSA API only supports a single import format for RSA private keys, which requires both the private exponent and the CRT parameters (p, q, dp, dq, u). This is a feature regression from Mbed TLS ≤3.x, where the low-level function mbedtls_rsa_complete is part of the public API and is capable of reconstructing partial RSA keys in most cases where it is possible.

(Note that this isn't about concrete formats, but about the information included in the representation. The pk module will continue to support both PKCS#1 and PKCS#8 formats in DER or PEM representations.)

Should TF-PSA-Crypto offer a way to import partial RSA private keys, e.g. where the CRT parameters are missing or where the private exponent is missing?

Mailing list thread: https://lists.trustedfirmware.org/archives/list/mbed-tls@lists.trustedfirmware.org/thread/FDDZVLDUVKOZAN523EJXX2LPET7LATS3/

@gilles-peskine-arm
Copy link
Author

Architectural decision: we are not going to provide a way to import partial RSA keys in TF-PSA-Crypto 1.0. We can remove the corresponding code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-design-approval Needs design discussion / approval
Projects
None yet
Development

No branches or pull requests

1 participant