Add crypto library

This commit is contained in:
Julian Stecklina 2022-11-21 16:03:58 +01:00
parent 8a505bd0e1
commit 0c013e77a7
4 changed files with 10 additions and 2 deletions

View File

@ -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
```

View File

@ -81,7 +81,7 @@
VERSION="0"
'';
cmdline = pkgs.writeText "lanzaboote-cmdline" " ";
cmdline = pkgs.writeText "lanzaboote-cmdline" "";
lanzaboote-uki = pkgs.runCommand "lanzboote-uki" {
nativeBuildInputs = [

7
rust/Cargo.lock generated
View File

@ -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",

View File

@ -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 = [] }