diff --git a/Cargo.lock b/Cargo.lock index d71b38db9..c797bace9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -55,7 +55,7 @@ name = "aes-test" version = "0.1.0" dependencies = [ "aes", - "hex-literal", + "hex-literal 0.3.4", "log", "xous 0.9.66 (registry+https://github.com/rust-lang/crates.io-index)", "xous-api-log", @@ -145,6 +145,12 @@ dependencies = [ "derive_arbitrary", ] +[[package]] +name = "arbitrary-int" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "825297538d77367557b912770ca3083f778a196054b3ee63b22673c4a3cae0a5" + [[package]] name = "argh" version = "0.1.13" @@ -387,6 +393,28 @@ dependencies = [ "xous-ipc 0.10.6 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "bao1x-boot0" +version = "0.1.0" +dependencies = [ + "bao1x-api", + "bao1x-hal", + "base64 0.22.1", + "critical-section", + "digest 0.10.7", + "ed25519-dalek", + "hex-literal 1.0.0", + "linked_list_allocator", + "riscv", + "sha2-bao1x", + "simple-fatfs", + "utralib 0.1.25", + "ux-api", + "xous 0.9.66 (registry+https://github.com/rust-lang/crates.io-index)", + "xous-bio-bdma", + "xous-riscv", +] + [[package]] name = "bao1x-emu" version = "0.1.0" @@ -411,6 +439,7 @@ name = "bao1x-hal" version = "0.1.0" dependencies = [ "bao1x-api", + "bitbybit", "bitfield", "bitflags 1.3.2", "either", @@ -607,6 +636,18 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed8765909f9009617974ab6b7d332625b320b33c326b1e9321382ef1999b5d56" +[[package]] +name = "bitbybit" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec187a89ab07e209270175faf9e07ceb2755d984954e58a2296e325ddece2762" +dependencies = [ + "arbitrary-int", + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "bitfield" version = "0.13.2" @@ -2551,6 +2592,12 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ebdb29d2ea9ed0083cd8cece49bbd968021bd99b0849edb4a9a7ee0fdf6a4e0" +[[package]] +name = "hex-literal" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcaaec4551594c969335c98c903c1397853d4198408ea609190f420500f6be71" + [[package]] name = "hidapi" version = "1.5.0" @@ -5095,6 +5142,15 @@ dependencies = [ "xous-ipc 0.10.6 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "sha2-bao1x" +version = "0.10.9" +dependencies = [ + "bao1x-hal", + "digest 0.10.7", + "utralib 0.1.25", +] + [[package]] name = "sha2-loader" version = "0.9.5" diff --git a/Cargo.toml b/Cargo.toml index c0a7c3dae..57f098552 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -118,6 +118,8 @@ members = [ "services/keystore", "libs/precursor-hal", "baremetal", + "bao1x-boot/boot0", + "bao1x-boot/sha2-bao1x", ] resolver = "2"