Lines Matching refs:options

32 			   struct trusted_key_options *options,  in tpm2_key_encode()  argument
57 if (options->blobauth_len == 0) { in tpm2_key_encode()
80 work = asn1_encode_integer(work, end_work, options->keyhandle); in tpm2_key_encode()
110 struct trusted_key_options *options, in tpm2_key_decode() argument
132 options->keyhandle = ctx.parent; in tpm2_key_decode()
242 struct trusted_key_options *options) in tpm2_seal_trusted() argument
253 if (options->hash == tpm2_hash_map[i].crypto_id) { in tpm2_seal_trusted()
262 if (!options->keyhandle) in tpm2_seal_trusted()
286 tpm_buf_append_name(chip, &buf, options->keyhandle, NULL); in tpm2_seal_trusted()
288 options->keyauth, TPM_DIGEST_SIZE); in tpm2_seal_trusted()
291 tpm_buf_append_u16(&sized, options->blobauth_len); in tpm2_seal_trusted()
293 if (options->blobauth_len) in tpm2_seal_trusted()
294 tpm_buf_append(&sized, options->blobauth, options->blobauth_len); in tpm2_seal_trusted()
307 flags |= options->policydigest_len ? 0 : TPM2_OA_USER_WITH_AUTH; in tpm2_seal_trusted()
312 tpm_buf_append_u16(&sized, options->policydigest_len); in tpm2_seal_trusted()
313 if (options->policydigest_len) in tpm2_seal_trusted()
314 tpm_buf_append(&sized, options->policydigest, options->policydigest_len); in tpm2_seal_trusted()
350 blob_len = tpm2_key_encode(payload, options, &buf.data[offset], blob_len); in tpm2_seal_trusted()
387 struct trusted_key_options *options, in tpm2_load_cmd() argument
398 rc = tpm2_key_decode(payload, options, &blob); in tpm2_load_cmd()
406 if (!options->keyhandle) in tpm2_load_cmd()
447 tpm_buf_append_name(chip, &buf, options->keyhandle, NULL); in tpm2_load_cmd()
448 tpm_buf_append_hmac_session(chip, &buf, 0, options->keyauth, in tpm2_load_cmd()
491 struct trusted_key_options *options, in tpm2_unseal_cmd() argument
511 if (!options->policyhandle) { in tpm2_unseal_cmd()
513 options->blobauth, in tpm2_unseal_cmd()
514 options->blobauth_len); in tpm2_unseal_cmd()
527 tpm2_buf_append_auth(&buf, options->policyhandle, in tpm2_unseal_cmd()
529 options->blobauth, options->blobauth_len); in tpm2_unseal_cmd()
585 struct trusted_key_options *options) in tpm2_unseal_trusted() argument
594 rc = tpm2_load_cmd(chip, payload, options, &blob_handle); in tpm2_unseal_trusted()
598 rc = tpm2_unseal_cmd(chip, payload, options, blob_handle); in tpm2_unseal_trusted()