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

ta: pkcs11: default disable raw RSA mechanism, default enable in plat-vexpress #7176

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

etienne-lms
Copy link
Contributor

Raw RSA signature (PKCS#11 mechanism CKM_RSA_X_509) is not a recommended scheme because unsafe when used with unsafe padding schemes. It's been added in the pkcs11 TA because needed for some TLS v1.2 scenario. I propose to disable it in the pkcs11 TA default config to prevent confusion but enable it in plat-vexpress default config so that it is tested (build + xtest).

@jforissier
Copy link
Contributor

Acked-by: Jerome Forissier <[email protected]>

Preferably with s/pkcs11 TA/PKCS#11 TA in the second commit description.

Disable CFG_PKCS11_TA_RSA_X_509 in pkcs11 TA default configuration
since raw RSA signature (CKM_RSA_X_509) computation and verification
can be unsafe. Target systems willing to embed its support (e.g. for
some TSL v1.2 support) will need to enable it explicitly.

Signed-off-by: Etienne Carriere <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
Default enable PKCS#11 TA config switch CFG_PKCS11_TA_RSA_X_509 to
embed this feature in the TA test environment. Raw RSA is no more
a recommended feature but can be required for some TLS v1.2
feature support. Therefore CFG_PKCS11_TA_RSA_X_509 has been disable
in PKCS#11 TA default configuration but should still be supported
hence we enable it in vexpress platforms that are intended to
test and development environments.

Signed-off-by: Etienne Carriere <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
@etienne-lms
Copy link
Contributor Author

Commit message fixed and review tag applied.

@etienne-lms
Copy link
Contributor Author

I've triggered a CI test round since recent merges in build.git should now lead to an all-success status.

@jforissier jforissier merged commit 3672a61 into OP-TEE:master Dec 13, 2024
10 checks passed
@etienne-lms etienne-lms deleted the pkcs11-raw-rsa branch December 13, 2024 13:57
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