mirror of
https://github.com/systemd/systemd
synced 2024-07-21 18:24:38 +00:00
parent
628998ecfa
commit
821d94c403
|
@ -670,12 +670,8 @@ static int tpm2_make_pcr_session(
|
|||
|
||||
static const TPMT_SYM_DEF symmetric = {
|
||||
.algorithm = TPM2_ALG_AES,
|
||||
.keyBits = {
|
||||
.aes = 128
|
||||
},
|
||||
.mode = {
|
||||
.aes = TPM2_ALG_CFB,
|
||||
}
|
||||
.keyBits.aes = 128,
|
||||
.mode.aes = TPM2_ALG_CFB,
|
||||
};
|
||||
_cleanup_(Esys_Freep) TPM2B_DIGEST *policy_digest = NULL;
|
||||
TPML_PCR_SELECTION pcr_selection;
|
||||
|
@ -898,16 +894,8 @@ int tpm2_seal(
|
|||
.type = TPM2_ALG_KEYEDHASH,
|
||||
.nameAlg = TPM2_ALG_SHA256,
|
||||
.objectAttributes = TPMA_OBJECT_FIXEDTPM | TPMA_OBJECT_FIXEDPARENT,
|
||||
.parameters = {
|
||||
.keyedHashDetail = {
|
||||
.scheme.scheme = TPM2_ALG_NULL,
|
||||
},
|
||||
},
|
||||
.unique = {
|
||||
.keyedHash = {
|
||||
.size = 32,
|
||||
},
|
||||
},
|
||||
.parameters.keyedHashDetail.scheme.scheme = TPM2_ALG_NULL,
|
||||
.unique.keyedHash.size = 32,
|
||||
.authPolicy = *policy_digest,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue