Skip to content
/ elx-pba Public
forked from elastx/elx-pba

Pre-boot authentication image for TCG Storage devices with sha512 support

License

Notifications You must be signed in to change notification settings

matfax/elx-pba

 
 

Repository files navigation

elx-pba

GitHub commit checks state Go Report Card License

Pre-boot authentication image for TCG Storage devices

Building

NOTE: Use a Go version of 1.17 or higher.

$ sudo apt install \
    gnupg2 gpgv2 flex bison build-essential libelf-dev \
    curl libssl-dev bc zstd dosfstools fdisk gdisk mtools
$ gpg2 --locate-keys torvalds@kernel.org gregkh@kernel.org autosigner@kernel.org

# Make sure sgdisk is in the PATH
$ PATH=$PATH:/sbin make

Alternatively, use the containerized build tools:

$ docker build \
	-t elastx.se/elx-pba-builder:latest \
	-f builder.dockerfile .
$ docker run \
	--rm --volume ${PWD}:/src \
	elastx.se/elx-pba-builder:latest

Testing in a VM

$ sudo apt install qemu-system-x86
$ make qemu-x86_64

Testing on a real disk

$ OPAL_KEY=debug
$ sudo sedutil-cli --loadpbaimage "${OPAL_KEY}" elx-pba-x86_64.img /dev/sdb

About

Pre-boot authentication image for TCG Storage devices with sha512 support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

  • Go 65.7%
  • Shell 22.7%
  • Makefile 9.3%
  • Dockerfile 2.3%