Lines Matching refs:options
473 struct trusted_key_options *options) in tpm2_seal_trusted() argument
482 if (options->hash == tpm2_hash_map[i].crypto_id) { in tpm2_seal_trusted()
495 tpm_buf_append_u32(&buf, options->keyhandle); in tpm2_seal_trusted()
499 options->keyauth /* hmac */, in tpm2_seal_trusted()
506 tpm_buf_append(&buf, options->blobauth, TPM_DIGEST_SIZE); in tpm2_seal_trusted()
512 tpm_buf_append_u16(&buf, 14 + options->policydigest_len); in tpm2_seal_trusted()
517 if (options->policydigest_len) { in tpm2_seal_trusted()
519 tpm_buf_append_u16(&buf, options->policydigest_len); in tpm2_seal_trusted()
520 tpm_buf_append(&buf, options->policydigest, in tpm2_seal_trusted()
521 options->policydigest_len); in tpm2_seal_trusted()
590 struct trusted_key_options *options, in tpm2_load_cmd() argument
612 tpm_buf_append_u32(&buf, options->keyhandle); in tpm2_load_cmd()
616 options->keyauth /* hmac */, in tpm2_load_cmd()
656 struct trusted_key_options *options, in tpm2_unseal_cmd() argument
671 options->policyhandle ? in tpm2_unseal_cmd()
672 options->policyhandle : TPM2_RS_PW, in tpm2_unseal_cmd()
675 options->blobauth /* hmac */, in tpm2_unseal_cmd()
720 struct trusted_key_options *options) in tpm2_unseal_trusted() argument
726 rc = tpm2_load_cmd(chip, payload, options, &blob_handle, in tpm2_unseal_trusted()
731 rc = tpm2_unseal_cmd(chip, payload, options, blob_handle, in tpm2_unseal_trusted()