From 860b92f5721d6bb12a150280f1d58499e3c0cd87 Mon Sep 17 00:00:00 2001 From: Xynnn007 Date: Wed, 4 Dec 2024 09:38:51 +0800 Subject: [PATCH] chore: Update jwt-simple dependency Some other related packages are also updated in Cargo.lock by `cargo update -p jwt-simple` Signed-off-by: Xynnn007 --- Cargo.lock | 161 +++++++++-------------------------------------------- Cargo.toml | 4 +- 2 files changed, 29 insertions(+), 136 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 95fb6f0ac..eab9dc22b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -546,7 +546,7 @@ dependencies = [ "rand", "reference-value-provider-service", "regorus", - "rsa 0.9.6", + "rsa", "rstest", "serde", "serde_json", @@ -1329,7 +1329,7 @@ dependencies = [ "ctr", "kbs-types", "rand", - "rsa 0.9.6", + "rsa", "serde", "serde_json", "sha2", @@ -1504,17 +1504,6 @@ version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" -[[package]] -name = "der" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1a467a65c5e759bce6e65eaf91cc29f466cdc57cb65777bd646872a8a1fd4de" -dependencies = [ - "const-oid", - "pem-rfc7468 0.6.0", - "zeroize", -] - [[package]] name = "der" version = "0.7.9" @@ -1522,7 +1511,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" dependencies = [ "const-oid", - "pem-rfc7468 0.7.0", + "pem-rfc7468", "zeroize", ] @@ -1683,12 +1672,12 @@ version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca" dependencies = [ - "der 0.7.9", + "der", "digest", "elliptic-curve", "rfc6979", - "signature 2.2.0", - "spki 0.7.3", + "signature", + "spki", ] [[package]] @@ -1720,8 +1709,8 @@ dependencies = [ "generic-array", "group", "hkdf", - "pem-rfc7468 0.7.0", - "pkcs8 0.10.2", + "pem-rfc7468", + "pkcs8", "rand_core", "sec1", "subtle", @@ -2791,32 +2780,6 @@ dependencies = [ "simple_asn1", ] -[[package]] -name = "jwt-simple" -version = "0.11.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "357892bb32159d763abdea50733fadcb9a8e1c319a9aa77592db8555d05af83e" -dependencies = [ - "anyhow", - "binstring", - "coarsetime", - "ct-codecs", - "ed25519-compact", - "hmac-sha1-compact", - "hmac-sha256", - "hmac-sha512", - "k256", - "p256", - "p384", - "rand", - "rsa 0.7.2", - "serde", - "serde_json", - "spki 0.6.0", - "thiserror 1.0.69", - "zeroize", -] - [[package]] name = "jwt-simple" version = "0.12.10" @@ -2854,7 +2817,7 @@ dependencies = [ "elliptic-curve", "once_cell", "sha2", - "signature 2.2.0", + "signature", ] [[package]] @@ -2876,7 +2839,7 @@ dependencies = [ "derivative", "env_logger 0.10.2", "jsonwebtoken", - "jwt-simple 0.11.9", + "jwt-simple", "kbs-types", "kms", "lazy_static", @@ -2888,7 +2851,7 @@ dependencies = [ "regex", "regorus", "reqwest 0.12.9", - "rsa 0.9.6", + "rsa", "rstest", "scc", "semver", @@ -2912,7 +2875,7 @@ dependencies = [ "base64 0.22.1", "clap 4.5.21", "env_logger 0.10.2", - "jwt-simple 0.11.9", + "jwt-simple", "kbs_protocol", "log", "reqwest 0.12.9", @@ -2941,7 +2904,7 @@ dependencies = [ "attester", "base64 0.22.1", "crypto", - "jwt-simple 0.12.10", + "jwt-simple", "kbs-types", "log", "reqwest 0.12.9", @@ -3609,15 +3572,6 @@ dependencies = [ "serde", ] -[[package]] -name = "pem-rfc7468" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d159833a9105500e0398934e205e0773f0b27529557134ecfc51c27646adac" -dependencies = [ - "base64ct", -] - [[package]] name = "pem-rfc7468" version = "0.7.0" @@ -3808,37 +3762,15 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" -[[package]] -name = "pkcs1" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eff33bdbdfc54cc98a2eca766ebdec3e1b8fb7387523d5c9c9a2891da856f719" -dependencies = [ - "der 0.6.1", - "pkcs8 0.9.0", - "spki 0.6.0", - "zeroize", -] - [[package]] name = "pkcs1" version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f" dependencies = [ - "der 0.7.9", - "pkcs8 0.10.2", - "spki 0.7.3", -] - -[[package]] -name = "pkcs8" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9eca2c590a5f85da82668fa685c09ce2888b9430e83299debf1f34b65fd4a4ba" -dependencies = [ - "der 0.6.1", - "spki 0.6.0", + "der", + "pkcs8", + "spki", ] [[package]] @@ -3847,8 +3779,8 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" dependencies = [ - "der 0.7.9", - "spki 0.7.3", + "der", + "spki", ] [[package]] @@ -4377,27 +4309,6 @@ dependencies = [ "serde", ] -[[package]] -name = "rsa" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "094052d5470cbcef561cb848a7209968c9f12dfa6d668f4bca048ac5de51099c" -dependencies = [ - "byteorder", - "digest", - "num-bigint-dig", - "num-integer", - "num-iter", - "num-traits", - "pkcs1 0.4.1", - "pkcs8 0.9.0", - "rand_core", - "signature 1.6.4", - "smallvec", - "subtle", - "zeroize", -] - [[package]] name = "rsa" version = "0.9.6" @@ -4409,12 +4320,12 @@ dependencies = [ "num-bigint-dig", "num-integer", "num-traits", - "pkcs1 0.7.5", - "pkcs8 0.10.2", + "pkcs1", + "pkcs8", "rand_core", "sha2", - "signature 2.2.0", - "spki 0.7.3", + "signature", + "spki", "subtle", "zeroize", ] @@ -4742,9 +4653,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc" dependencies = [ "base16ct", - "der 0.7.9", + "der", "generic-array", - "pkcs8 0.10.2", + "pkcs8", "subtle", "zeroize", ] @@ -5032,16 +4943,6 @@ dependencies = [ "libc", ] -[[package]] -name = "signature" -version = "1.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" -dependencies = [ - "digest", - "rand_core", -] - [[package]] name = "signature" version = "2.2.0" @@ -5117,16 +5018,6 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" -[[package]] -name = "spki" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b" -dependencies = [ - "base64ct", - "der 0.6.1", -] - [[package]] name = "spki" version = "0.7.3" @@ -5134,7 +5025,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" dependencies = [ "base64ct", - "der 0.7.9", + "der", ] [[package]] @@ -5227,7 +5118,7 @@ dependencies = [ "hmac-sha256", "hmac-sha512", "rand", - "rsa 0.9.6", + "rsa", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 97ed8dc08..b87b1d18b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,9 @@ config = "0.13.3" ear = "0.3.0" env_logger = "0.10.0" hex = "0.4.3" -jwt-simple = "0.11" +jwt-simple = { version = "0.12", default-features = false, features = [ + "pure-rust", +] } kbs_protocol = { git = "https://github.com/confidential-containers/guest-components.git", rev = "e6999a3c0fd877dae9e68ea78b8b483062db32b8", default-features = false } kbs-types = "0.7.0" kms = { git = "https://github.com/confidential-containers/guest-components.git", rev = "e6999a3c0fd877dae9e68ea78b8b483062db32b8", default-features = false }