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

Update to version 2.25.0 of Mbed TLS #77

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

hug-dev
Copy link
Member

@hug-dev hug-dev commented Mar 4, 2021

Updates the code to PSA Crypto 1.0.1.
Mbed Crypto aligned a few more things to PSA Crypto 1.0.1 which led to
various simplifications of the code.
Fixed the specification-defined constants.
Removed key handle support.
Fix #76

Updates the code to PSA Crypto 1.0.1.
Mbed Crypto aligned a few more things to PSA Crypto 1.0.1 which led to
various simplifications of the code.
Fixed the specification-defined constants.
Removed key handle support.

Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
Comment on lines +78 to +81
psa_key_type_t shim_PSA_KEY_TYPE_ECC_KEY_PAIR(psa_ecc_family_t curve);
psa_key_type_t shim_PSA_KEY_TYPE_ECC_PUBLIC_KEY(psa_ecc_family_t curve);
psa_key_type_t shim_PSA_KEY_TYPE_DH_KEY_PAIR(psa_dh_family_t group);
psa_key_type_t shim_PSA_KEY_TYPE_DH_PUBLIC_KEY(psa_dh_family_t group);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok with the change, but just to make sure this is what you wanted: you didn't change the parameter name even though it's not in the type name anymore.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, maybe family would have been more appropriate but anyway the parameter name is optional for C header prototypes 🤡

@@ -138,9 +133,6 @@ pub fn decrypt(
&mut plaintext_size,
)
})
.to_result();
let key_close_handle_res = key_id.close_handle(key_handle);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@hug-dev hug-dev merged commit b141a66 into parallaxsecond:master Mar 5, 2021
@hug-dev hug-dev deleted the update-mbed-tls branch March 5, 2021 13:30
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.

Update the Mbed TLS submodule to 2.25.0
2 participants