Replace legacy rsa symbols followup#10642
Open
valeriosetti wants to merge 15 commits intoMbed-TLS:developmentfrom
Open
Replace legacy rsa symbols followup#10642valeriosetti wants to merge 15 commits intoMbed-TLS:developmentfrom
valeriosetti wants to merge 15 commits intoMbed-TLS:developmentfrom
Conversation
…IR_BASIC Follow the same pattern that was used in the past to remove dependency on MBEDTLS_RSA_C and use PSA_WANT instead. Relying on MBEDTLS_RSA_C is fine only when builtin drivers are compiled since all PSA_WANT are converted to legacy build symbols. However when builtin drivers are not built (ex: in case of TF-M), then part of the code in TLS/X509 won't be compiled because MBEDTLS_RSA_C is not set. OTOH it's not possible to declare that symbol in a configuration file because it's a legacy one and it will be rejected by buildtime checks. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
replace PSA_HAVE_ALG_SOME_RSA_VERIFY with PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
…hake test Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
PKCS7 supports ECC as well so the test function should not be guarded or limited to RSA build symbols. Those guards must be added to test data as required by the test itself. This allows for test extension to also include ECC testing (not present now). Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
…rify tests Replace PSA_HAVE_ALG_SOME_RSA_VERIFY -> PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY for all tests that are just parsing but not doing any verification. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
…ng to only PKCS v1.5 Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Mbed TLS only implements DTLS 1.2, so RSA is limited to PKCS v1.5. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
…hake Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Since this can be used for both TLS 1.2 and TLS 1.3 tests, require both PKCS v1.5 and v2.2. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
The function has a guard that only limits it to TLS 1.2, which means only RSA PKCS v1.5 is required, not PSS. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
5 tasks
Contributor
|
There's a trivial merge conflict. It would be more convenient to resolve it before review. Also there's a genuine failure of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is the follow-up of #10591. Its goal is to address comments being raised in that PR concerning testing.
PR checklist