Finish side-porting commits from mbedtls-restricted that missed the split #318
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.
When we split Mbed Crypto from Mbed TLS, we missed the last few commits in the restricted branch of Mbed TLS which were quarantined security fixes. These commits are present in the git history of Mbed TLS, but their effect was cancelled by the removal of crypto files, and the commits never appeared in Mbed Crypto.
We're fixing this through 3 pull requests:
pk.h
, cherry-picked here forrsa.h
.config-suite-b.h
(throughtest-ref-configs.pl
), provide the desired coverage, namely having some test fail if the maximum signature size is not calculated correctly, especially in a configuration where RSA is disabled and the smallest MPI is just large enough for ECC.(
#rNNN
are private links.)This pull request deliberately omits the addition of a run of
programs/pkey/pk_sign
toall.sh
. While this would be desirable, it wasn't in scope of #r573, and was only added there as a non-regression test which is now performed through unit tests. A better approach to smoke-test sample programs would be through demo scripts as in Mbed-TLS/mbedtls#2698.Goal of this PR: all the commits that had gone missing are now present in Mbed Crypto.
Internal ref: IOTCRYPT-969