From 3001a6f577f5c81d22602d84bcf275ebb409cbdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Thu, 16 Feb 2023 11:03:10 +0100 Subject: [PATCH] Use renamed RSA backend --- Cargo.toml | 8 ++++---- examples/virtual.rs | 2 +- src/command/gen.rs | 2 +- src/command/private_key_template.rs | 2 +- tests/card/mod.rs | 2 +- tests/command-response.rs | 2 +- tests/virt/mod.rs | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 31897ee..5d4bc29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ log = "0.4" serde = { version = "1.0", default-features = false } subtle = { version = "2.4.1", default-features = false } trussed = "0.1.0" -trussed-rsa-backend = { git = "https://github.com/Nitrokey/trussed-rsa-backend", optional = true } +trussed-rsa-alloc = { git = "https://github.com/Nitrokey/trussed-rsa-backend", rev = "a39ceceeb6c5faecec567d6b1b2ed3d456951c07", optional = true } serde_repr = "0.1" hex-literal = "0.3.4" @@ -46,7 +46,7 @@ regex = "1.6.0" stoppable_thread = "0.2.1" test-log = "0.2.10" trussed = { version = "0.1.0", features = ["virt"] } -trussed-rsa-backend = { git = "https://github.com/Nitrokey/trussed-rsa-backend", features = ["virt"] } +trussed-rsa-alloc = { git = "https://github.com/Nitrokey/trussed-rsa-backend", rev = "a39ceceeb6c5faecec567d6b1b2ed3d456951c07", features = ["virt"] } rand = "0.8.5" ron = "0.8" serde_cbor = "0.11" @@ -55,7 +55,7 @@ hex = { version = "0.4", features = ["serde"] } [features] std = [] virtual = ["std", "vpicc"] -rsa = ["trussed-rsa-backend"] +rsa = ["trussed-rsa-alloc"] rsa2048 = ["rsa"] rsa4096 = ["rsa2048"] rsa4096-gen = ["rsa4096"] @@ -72,7 +72,7 @@ log-error = [] [patch.crates-io] interchange = { git = "https://github.com/trussed-dev/interchange", rev = "fe5633466640e1e9a8c06d9b5dd1d0af08c272af" } p256-cortex-m4 = { git = "https://github.com/Nitrokey/p256-cortex-m4", tag = "v0.1.0-alpha.6-nitrokey-1" } -trussed = { git = "https://github.com/trussed-dev/trussed" , rev = "51477a4c5d22b7fbfe9d5fed137701764b2c86ec" } +trussed = { git = "https://github.com/trussed-dev/trussed" , rev = "67b4ee9c6c530658e2a358a082cbf8720e896bc1" } [package.metadata.docs.rs] all-features = true diff --git a/examples/virtual.rs b/examples/virtual.rs index a5eaaf2..4ab58c0 100644 --- a/examples/virtual.rs +++ b/examples/virtual.rs @@ -28,7 +28,7 @@ #[cfg(not(feature = "rsa"))] use trussed::virt::with_ram_client; #[cfg(feature = "rsa")] -use trussed_rsa_backend::virt::with_ram_client; +use trussed_rsa_alloc::virt::with_ram_client; fn main() { env_logger::init(); diff --git a/src/command/gen.rs b/src/command/gen.rs index befdc35..77622e8 100644 --- a/src/command/gen.rs +++ b/src/command/gen.rs @@ -14,7 +14,7 @@ use crate::utils::InspectErr; const KEYGEN_DO_TAG: &[u8] = &hex!("7f49"); #[cfg(feature = "rsa")] -use trussed_rsa_backend::RsaPublicParts; +use trussed_rsa_alloc::RsaPublicParts; fn serialize_pub( algo: CurveAlgo, diff --git a/src/command/private_key_template.rs b/src/command/private_key_template.rs index 04c0e24..1f87dee 100644 --- a/src/command/private_key_template.rs +++ b/src/command/private_key_template.rs @@ -14,7 +14,7 @@ const PRIVATE_KEY_TEMPLATE_DO: u16 = 0x4D; const CONCATENATION_KEY_DATA_DO: u16 = 0x5F48; #[cfg(feature = "rsa")] -use trussed_rsa_backend::RsaImportFormat; +use trussed_rsa_alloc::RsaImportFormat; // ยง 4.4.3.12 pub fn put_private_key_template( diff --git a/tests/card/mod.rs b/tests/card/mod.rs index 4099dc0..5f4a88f 100644 --- a/tests/card/mod.rs +++ b/tests/card/mod.rs @@ -17,7 +17,7 @@ use trussed::{ #[cfg(not(feature = "rsa"))] use trussed::virt::{with_ram_client, Client}; #[cfg(feature = "rsa")] -use trussed_rsa_backend::virt::{with_ram_client, Client}; +use trussed_rsa_alloc::virt::{with_ram_client, Client}; const REQUEST_LEN: usize = 7609; const RESPONSE_LEN: usize = 7609; diff --git a/tests/command-response.rs b/tests/command-response.rs index 10db29b..a2c2c40 100644 --- a/tests/command-response.rs +++ b/tests/command-response.rs @@ -715,7 +715,7 @@ impl IoCmd { #[cfg(not(feature = "rsa"))] use trussed::virt::with_ram_client; #[cfg(feature = "rsa")] -use trussed_rsa_backend::virt::with_ram_client; +use trussed_rsa_alloc::virt::with_ram_client; #[test_log::test] fn command_response() { diff --git a/tests/virt/mod.rs b/tests/virt/mod.rs index 00500d3..ed5ee82 100644 --- a/tests/virt/mod.rs +++ b/tests/virt/mod.rs @@ -20,7 +20,7 @@ use stoppable_thread::spawn; #[cfg(not(feature = "rsa"))] use trussed::virt::with_ram_client; #[cfg(feature = "rsa")] -use trussed_rsa_backend::virt::with_ram_client; +use trussed_rsa_alloc::virt::with_ram_client; const STDOUT_FILTER: &[&str] = &[ r"\[GNUPG:\] KEY_CONSIDERED [0-9A-F]{40} \d",