From 05a7c4ca7e6e15f2ef5802eb33bd8ddea7351fdb Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 28 Mar 2024 16:15:29 +0800 Subject: [PATCH] use auto-release of accelerator hardware --- services/root-keys/Cargo.toml | 3 ++- services/root-keys/src/main.rs | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/services/root-keys/Cargo.toml b/services/root-keys/Cargo.toml index 2e6d47a1d..72f4b0fb0 100644 --- a/services/root-keys/Cargo.toml +++ b/services/root-keys/Cargo.toml @@ -71,8 +71,9 @@ byteorder = "1.4.3" # used by keywrap hex = { version = "0.4.3", default-features = false, features = [] } [dependencies.curve25519-dalek] -version = "=4.1.2" # note this is patched to our fork in ./Cargo.toml +version = "=4.1.2" # note this is patched to our fork in ./Cargo.toml default-features = false +features = ["auto-release", "warn-fallback"] [dependencies.ed25519-dalek] version = "2.1.0" diff --git a/services/root-keys/src/main.rs b/services/root-keys/src/main.rs index 939e7c50d..933b48378 100644 --- a/services/root-keys/src/main.rs +++ b/services/root-keys/src/main.rs @@ -2382,9 +2382,6 @@ fn main() -> ! { log::error!("couldn't convert opcode"); } } - // de-allocate the engine at the end of root-keys, so other crates can use it. - #[cfg(target_os = "xous")] - curve25519_dalek::backend::serial::u32e::free_engine(); } // clean up our program log::trace!("main loop exit, destroying servers");