swtpm: Factor-out code to file_read

Move the file reading parts from SWTPM_NVRAM_LoadData_Dir into file_read.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
3 files changed