lock rootkeys into a particular version of the dalek crates + cooperative release of hw accelerator

the cooperative release is THE problem that we need to discuss.
This commit is contained in:
bunnie 2024-03-11 18:18:37 +08:00
parent 3bcc0dcd88
commit f5fdcf7d5b
2 changed files with 5 additions and 3 deletions

View file

@ -65,13 +65,13 @@ keyboard = { path = "../keyboard" }
sha2 = { version = "0.10.8" }
digest = "0.10.7"
aes = { path = "../aes" }
engine-25519 = { path = "../engine-25519" }
byteorder = "1.4.3" # used by keywrap
# engine-25519 = { path = "../engine-25519" }
byteorder = "1.4.3" # used by keywrap
# hardware acceleration adaptations are inserted into a fork of the main branch.
hex = { version = "0.4.3", default-features = false, features = [] }
[dependencies.curve25519-dalek]
version = "=4.1.1" # note this is patched to our fork in ./Cargo.toml
version = "=4.1.1" # note this is patched to our fork in ./Cargo.toml
default-features = false
[dependencies.ed25519-dalek]

View file

@ -2382,6 +2382,8 @@ fn main() -> ! {
log::error!("couldn't convert opcode");
}
}
// de-allocate the engine at the end of root-keys, so other crates can use it.
curve25519_dalek::backend::serial::u32e::free_engine();
}
// clean up our program
log::trace!("main loop exit, destroying servers");