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

Upgrade dependency on Mbed Crypto to v2.0.0 #56

Merged
merged 1 commit into from
Oct 29, 2019

Conversation

ionut-arm
Copy link
Member

Bumping dependency version of Mbed Crypto to 2.0.0. Also making all changes required to keep the service functional. This included a change in the client library, bumping that to 0.1.5.

This resolves #38

@ionut-arm ionut-arm added the enhancement New feature or request label Oct 24, 2019
@ionut-arm ionut-arm self-assigned this Oct 24, 2019
@ionut-arm
Copy link
Member Author

One thing to note is that because of bindgen being unable to generate bindings for static inline functions, a lot of the functions that operate on psa_key_attributes_t do not receive a binding. At the moment we're cutting corners, setting the parameters "by hand".

Also, we'll need, at some point, to implement what Mbed Crypto calls domain_parameters - extra crypto parameters for specific algorithms (RSA, DSA...). Or at least decide how we want to handle them

This commit bumps the import version for the Mbed Crypto dependency to
2.0.0. It includes updates to make the code compatible and tests passing
again.

Signed-off-by: Ionut Mihalcea <ionut.mihalcea@arm.com>
@@ -34,7 +34,7 @@ toml = "0.4.2"
serde = { version = "1.0", features = ["derive"] }

[package.metadata.config]
mbed-crypto-version = "mbedcrypto-1.1.0"
mbed-crypto-version = "mbedcrypto-2.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

😎

&& key_id != 0
&& key_id < constants::PSA_MAX_PERSISTENT_KEY_IDENTIFIER
|| key_id == 0
|| key_id > constants::PSA_MAX_PERSISTENT_KEY_IDENTIFIER
Copy link
Member

Choose a reason for hiding this comment

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

Good catch :P

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm still horrified I made that mistake in the first place.

Copy link
Member

Choose a reason for hiding this comment

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

It happens to the best of us.

@ionut-arm ionut-arm merged commit 8442a54 into parallaxsecond:master Oct 29, 2019
@ionut-arm ionut-arm deleted the mbed-2 branch October 29, 2019 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to Mbed Crypto v2.0.0
2 participants