From 0c013e77a785f49513339985b28413f773040060 Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Mon, 21 Nov 2022 16:03:58 +0100 Subject: [PATCH] Add crypto library --- README.md | 2 +- flake.nix | 2 +- rust/Cargo.lock | 7 +++++++ rust/Cargo.toml | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d90b3d..95eb8f1 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,5 @@ How to boot a VM: https://rust-osdev.github.io/uefi-rs/HEAD/tutorial/vm.html ``` -nix build --builders "" && cp -f result/bin/lanzaboote.efi esp/EFI/Linux/lanzaboote-x.efi && qemu-uefi -drive format=raw,file=fat:rw:esp +nix build --builders "" && cp -f result/bin/lanzaboote.efi esp/EFI/Linux/lanzaboote.efi && qemu-uefi -drive format=raw,file=fat:rw:esp ``` diff --git a/flake.nix b/flake.nix index 7b2d161..0bf07f0 100644 --- a/flake.nix +++ b/flake.nix @@ -81,7 +81,7 @@ VERSION="0" ''; - cmdline = pkgs.writeText "lanzaboote-cmdline" " "; + cmdline = pkgs.writeText "lanzaboote-cmdline" ""; lanzaboote-uki = pkgs.runCommand "lanzboote-uki" { nativeBuildInputs = [ diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 617821d..38c443a 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -20,10 +20,17 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "ed25519-compact" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f2d21333b679bbbac680b3eb45c86937e42f69277028f4e97b599b80b86c253" + [[package]] name = "lanzaboote" version = "0.1.0" dependencies = [ + "ed25519-compact", "log", "uefi", "uefi-services", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 6f9b585..fd80b9a 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -8,4 +8,5 @@ publish = false uefi = { version = "0.18.0", features = [ "alloc", "logger" ] } uefi-services = "0.15.0" log = "0.4.17" +ed25519-compact = { version = "2.0.2", default-features = false, features = [] }