Lines Matching refs:options
64 struct trusted_key_options *options) in tpm2_seal_trusted() argument
73 if (options->hash == tpm2_hash_map[i].crypto_id) { in tpm2_seal_trusted()
92 tpm_buf_append_u32(&buf, options->keyhandle); in tpm2_seal_trusted()
96 options->keyauth /* hmac */, in tpm2_seal_trusted()
100 tpm_buf_append_u16(&buf, 4 + options->blobauth_len + payload->key_len + 1); in tpm2_seal_trusted()
102 tpm_buf_append_u16(&buf, options->blobauth_len); in tpm2_seal_trusted()
103 if (options->blobauth_len) in tpm2_seal_trusted()
104 tpm_buf_append(&buf, options->blobauth, options->blobauth_len); in tpm2_seal_trusted()
111 tpm_buf_append_u16(&buf, 14 + options->policydigest_len); in tpm2_seal_trusted()
116 if (options->policydigest_len) { in tpm2_seal_trusted()
118 tpm_buf_append_u16(&buf, options->policydigest_len); in tpm2_seal_trusted()
119 tpm_buf_append(&buf, options->policydigest, in tpm2_seal_trusted()
120 options->policydigest_len); in tpm2_seal_trusted()
187 struct trusted_key_options *options, in tpm2_load_cmd() argument
209 tpm_buf_append_u32(&buf, options->keyhandle); in tpm2_load_cmd()
213 options->keyauth /* hmac */, in tpm2_load_cmd()
251 struct trusted_key_options *options, in tpm2_unseal_cmd() argument
265 options->policyhandle ? in tpm2_unseal_cmd()
266 options->policyhandle : TPM2_RS_PW, in tpm2_unseal_cmd()
269 options->blobauth /* hmac */, in tpm2_unseal_cmd()
270 options->blobauth_len); in tpm2_unseal_cmd()
311 struct trusted_key_options *options) in tpm2_unseal_trusted() argument
320 rc = tpm2_load_cmd(chip, payload, options, &blob_handle); in tpm2_unseal_trusted()
324 rc = tpm2_unseal_cmd(chip, payload, options, blob_handle); in tpm2_unseal_trusted()