mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-02-04 21:19:14 +00:00
swtpm: log when the decryption of a state blob fails
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
parent
cf47149f88
commit
e396140204
@ -912,6 +912,10 @@ TPM_RESULT SWTPM_NVRAM_SetStateBlob(unsigned char *data,
|
||||
res = SWTPM_NVRAM_DecryptData(&migrationkey,
|
||||
&plain, &plain_len,
|
||||
&data[dataoffset], length - dataoffset);
|
||||
if (res != 0)
|
||||
logprintf(STDERR_FILENO,
|
||||
"SWTPM_NVRAM_LoadData: Decrypting the state blob "
|
||||
"failed res = %d\n", res);
|
||||
if (res == TPM_SUCCESS) {
|
||||
res = SWTPM_NVRAM_StoreData_Intern(plain, plain_len,
|
||||
tpm_number,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user