Skip to content

Commit 04320f7

Browse files
committed
Upgrade dependency on Mbed Crypto to v2.0.0
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 <[email protected]>
1 parent 7a9e348 commit 04320f7

File tree

5 files changed

+119
-218
lines changed

5 files changed

+119
-218
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ env_logger = "0.7.1"
2424
log = { version = "0.4.8", features = ["serde"] }
2525

2626
[dev-dependencies]
27-
parsec-client-test = { git = "https://github.com/parallaxsecond/parsec-client-test", tag = "0.1.4" }
27+
parsec-client-test = { git = "https://github.com/parallaxsecond/parsec-client-test", tag = "0.1.5" }
2828
num_cpus = "1.10.1"
2929

3030
[build-dependencies]
@@ -34,7 +34,7 @@ toml = "0.4.2"
3434
serde = { version = "1.0", features = ["derive"] }
3535

3636
[package.metadata.config]
37-
mbed-crypto-version = "mbedcrypto-1.1.0"
37+
mbed-crypto-version = "mbedcrypto-2.0.0"
3838

3939
[features]
4040
default = ["mbed"]

src/providers/mbed_provider/constants.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ pub const PSA_ERROR_INVALID_PADDING: psa_status_t = -150;
3838
pub const PSA_ERROR_INSUFFICIENT_DATA: psa_status_t = -143;
3939
pub const PSA_ERROR_INVALID_HANDLE: psa_status_t = -136;
4040

41-
pub const PSA_MAX_PERSISTENT_KEY_IDENTIFIER: psa_key_id_t = 0xfffe_ffff;
41+
pub const PSA_MAX_KEY_BITS: usize = 0xfff8;
42+
pub const PSA_KEY_BITS_TOO_LARGE: psa_key_bits_t = 0xffff;
43+
pub const PSA_MAX_PERSISTENT_KEY_IDENTIFIER: psa_key_id_t = 0x3fff_ffff;
4244
pub const PSA_KEY_SLOT_COUNT: isize = 32;
4345
pub const EMPTY_KEY_HANDLE: psa_key_handle_t = 0;
4446
pub const PSA_KEY_TYPE_NONE: psa_key_type_t = 0x0000_0000;

0 commit comments

Comments
 (0)