From 417fa16a22f3a8ea0650d5ba7d6b3b78f5ce752b Mon Sep 17 00:00:00 2001 From: bunnie Date: Sun, 7 Apr 2024 18:57:23 +0800 Subject: [PATCH] add rand_chacha as a dependency for the loader this is needed in the cramium-soc case because the raw TRNG does not have a whitener, it should not be used directly to generate keys. --- loader/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loader/Cargo.toml b/loader/Cargo.toml index 4a9783a08..11daf46a8 100644 --- a/loader/Cargo.toml +++ b/loader/Cargo.toml @@ -33,6 +33,7 @@ aes-gcm-siv = { version = "0.11.1", default-features = false, features = [ "aes", ], optional = true } crc = { version = "1.8.1", default-features = false } +rand_chacha = { version = "0.3.1", optional = true, default_features = false } [dependencies.com_rs] git = "https://github.com/betrusted-io/com_rs" @@ -65,6 +66,7 @@ cramium-soc = [ "cramium-hal", "xous-pio", "xous-pl230", + "rand_chacha", ] cramium-fpga = [ "utralib/cramium-fpga",