tpm2-common: extract file and TPM loading functions

The functions needed to load the key file and load a key into the TPM
are extracted from create_tpm2_key in preparation for re-used in
load_tpm2_key.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
7 files changed