commit 25fffe6ae7525c139d1534e31c93967aa8350513 parent a61e024cfd35a6bbc2feccc42137185480808075 Author: Daniel Barlow <dan@telent.net> Date: Tue, 20 Jan 2026 23:15:26 +0000 make ed25519 keypair Diffstat:
| M | Makefile | | | 8 | +++++++- |
| M | shell.nix | | | 1 | + |
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -1,6 +1,6 @@ IMAGE=./target/riscv32imc-unknown-none-elf/release/ecu-esp32 -$(IMAGE): $(wildcard ecu-esp32/src/*.rs) +$(IMAGE): $(wildcard ecu-esp32/src/*.rs) pubkey.bin echo $< cargo build --release @@ -12,3 +12,9 @@ ota.bin: $(IMAGE) install: ota.bin time ruby otaclient.rb $< + +privkey.pem: + openssl genpkey -algorithm ed25519 -out privkey.pem + +pubkey.bin: privkey.pem + openssl pkey -in $< -pubout -text_pub | awk '/^ / {print}' | xxd -r -p > $@ diff --git a/shell.nix b/shell.nix @@ -14,6 +14,7 @@ in entr ruby + openssl ]; RUSTC_VERSION = overrides.toolchain.channel; # https://github.com/rust-lang/rust-bindgen#environment-variables