authvar: fill some baisc functions

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: generate and write the EFI AUTH variable

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: collect everything in buffer and write it later

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: parse the timestamp string

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: adjust timestamp for append

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: modify the content of SignedData for authvar

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: fix USC2 conversion and the length of the header

Also truncate the export file.

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: sign the right content

We don't have to calculate the digest first.

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: don't exit if no value for CLEAR

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: mark "import" as unimplemented

Will do it later...

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: check the export file

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
efisiglist: adjust the signature size

I forgot the size of the owner GUID.

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
authvar: fix the type cast for 32bit systems

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>