Add a large chunk of the EFI implementation.

Signed-off-by: Peter Jones <pjones@redhat.com>
Build a simple authenticated variable builder.

Signed-off-by: Peter Jones <pjones@redhat.com>
foo

Signed-off-by: Peter Jones <pjones@redhat.com>
Add assemble and more of buildvar.

buildvar builds a variable for hashing and the authenticated attributes
that includes the hash.

assemble puts the variable back together and adds whatever else is
needed.

Signed-off-by: Peter Jones <pjones@redhat.com>
Make it actually produce something like the right output.

Not quite tested yet.

Signed-off-by: Peter Jones <pjones@redhat.com>
Debug a bit and figure out what I'm actually doing wrong.

So close I can taste it.

Signed-off-by: Peter Jones <pjones@redhat.com>