Lines Matching full: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()
236 * @options: authentication values and other options
242 struct trusted_key_options *options) in tpm2_seal_trusted() argument
252 if (options->hash == tpm2_hash_map[i].crypto_id) { in tpm2_seal_trusted()
261 if (!options->keyhandle) in tpm2_seal_trusted()
274 tpm_buf_append_u32(&buf, options->keyhandle); in tpm2_seal_trusted()
278 options->keyauth /* hmac */, in tpm2_seal_trusted()
282 tpm_buf_append_u16(&buf, 4 + options->blobauth_len + payload->key_len); in tpm2_seal_trusted()
284 tpm_buf_append_u16(&buf, options->blobauth_len); in tpm2_seal_trusted()
285 if (options->blobauth_len) in tpm2_seal_trusted()
286 tpm_buf_append(&buf, options->blobauth, options->blobauth_len); in tpm2_seal_trusted()
292 tpm_buf_append_u16(&buf, 14 + options->policydigest_len); in tpm2_seal_trusted()
298 flags |= options->policydigest_len ? 0 : TPM2_OA_USER_WITH_AUTH; in tpm2_seal_trusted()
304 tpm_buf_append_u16(&buf, options->policydigest_len); in tpm2_seal_trusted()
305 if (options->policydigest_len) in tpm2_seal_trusted()
306 tpm_buf_append(&buf, options->policydigest, in tpm2_seal_trusted()
307 options->policydigest_len); in tpm2_seal_trusted()
338 blob_len = tpm2_key_encode(payload, options, in tpm2_seal_trusted()
365 * @options: authentication values and other options
375 struct trusted_key_options *options, in tpm2_load_cmd() argument
386 rc = tpm2_key_decode(payload, options, &blob); in tpm2_load_cmd()
394 if (!options->keyhandle) in tpm2_load_cmd()
429 tpm_buf_append_u32(&buf, options->keyhandle); in tpm2_load_cmd()
433 options->keyauth /* hmac */, in tpm2_load_cmd()
464 * @options: authentication values and other options
473 struct trusted_key_options *options, in tpm2_unseal_cmd() argument
487 options->policyhandle ? in tpm2_unseal_cmd()
488 options->policyhandle : TPM2_RS_PW, in tpm2_unseal_cmd()
491 options->blobauth /* hmac */, in tpm2_unseal_cmd()
492 options->blobauth_len); in tpm2_unseal_cmd()
537 * @options: authentication values and other options
543 struct trusted_key_options *options) in tpm2_unseal_trusted() argument
552 rc = tpm2_load_cmd(chip, payload, options, &blob_handle); in tpm2_unseal_trusted()
556 rc = tpm2_unseal_cmd(chip, payload, options, blob_handle); in tpm2_unseal_trusted()