-
Notifications
You must be signed in to change notification settings - Fork 2.8k
USE_PSA_CRYPTO: update elliptic curve encoding #2964
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
USE_PSA_CRYPTO: update elliptic curve encoding #2964
Conversation
bdf6d80 to
b314414
Compare
b314414 to
3bac2d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Note: CI is passing except for the API-ABI check, which is expected to fail as this PR indeed changes the API by updating the crypto submodule to a version with a new API. |
8a87d2b
8a87d2b to
1955b5f
Compare
|
I rebased to not have a conflict in the submodule update commit and to get up-to-date CI results. |
|
The CI is still passing except the API/ABI check as expected, as it's kinda the point of this PR. |
1955b5f to
edf00ce
Compare
|
CI is passing on HEAD except for a known flaky DTLS test case. We'll need to do another final round of CI after updating the crypto submodule once the crypto PR is merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Previously in d875285: * Mbed-TLS#333: Streamline PSA key type encodings: prepare * Mbed-TLS#323: Initialise return values to an error Previously in dbcb442: * Mbed-TLS#291: Test MBEDTLS_CTR_DRBG_USE_128_BIT_KEY * Mbed-TLS#334: Fix some pylint warnings Previously in ceceedb: * Mbed-TLS#348: Bump version to Mbed TLS 2.20.0 and crypto SO version to 4 * Mbed-TLS#354: Fix incrementing pointer instead of value In this commit: * Mbed-TLS#349: Fix minor defects found by Coverity * Mbed-TLS#179: Add option to build SHA-512 without SHA-384 * Mbed-TLS#327: Implement psa_hash_compute and psa_hash_compare * Mbed-TLS#330: Streamline PSA key type and curve encodings
Adapt to the change of encoding of elliptic curve key types in PSA crypto. Before, an EC key type encoded the TLS curve identifier. Now the EC key type only includes an ad hoc curve family identifier, and determining the exact curve requires both the key type and size. This commit moves from the old encoding and old definitions from crypto/include/mbedtls/psa_util.h to the new encoding and definitions from the immediately preceding crypto submodule update.
edf00ce to
4245980
Compare
|
The crypto PR is merged. I've updated the crypto submodule update commit in this PR for a final round of CI and review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Crypto submodule is now pointing to the current https://github.com/ARMmbed/mbed-crypto/tree/development, so no final updates should be required before merging (barring any other issues found in code review).
|
CI passed except for the expected API changes. |
Update the SSL client code for ECDH using PSA crypto to the new elliptic curve key type encoding in ARMmbed/mbed-crypto#330.
This pull request and ARMmbed/mbed-crypto#330 need to be merged close together because the crypto PR breaks mbedtls. To merge: