Home
last modified time | relevance | path

Searched refs:keyhandle (Results 1 – 3 of 3) sorted by relevance

/linux/security/keys/trusted-keys/
H A Dtrusted_tpm1.c55 pr_debug("sealing key handle %0X\n", o->keyhandle); in dump_options()
425 uint32_t keyhandle, const unsigned char *keyauth, in tpm_seal() argument
449 ret = osap(tb, &sess, keyauth, keytype, keyhandle); in tpm_seal()
500 tpm_buf_append_u32(tb, keyhandle); in tpm_seal()
541 uint32_t keyhandle, const unsigned char *keyauth, in tpm_unseal() argument
591 tpm_buf_append_u32(tb, keyhandle); in tpm_unseal()
640 ret = tpm_seal(tb, o->keytype, o->keyhandle, o->keyauth, in key_seal()
663 ret = tpm_unseal(tb, o->keyhandle, o->keyauth, p->blob, p->blob_len, in key_unseal()
742 opt->keyhandle = handle; in getoptions()
848 options->keyhandle = SRKHANDLE; in trusted_options_alloc()
[all …]
H A Dtrusted_tpm2.c71 work = asn1_encode_integer(work, end_work, options->keyhandle); in tpm2_key_encode()
124 options->keyhandle = ctx.parent; in tpm2_key_decode()
248 if (!options->keyhandle) in tpm2_seal_trusted()
278 rc = tpm_buf_append_name(chip, buf, options->keyhandle, NULL); in tpm2_seal_trusted()
400 if (!options->keyhandle) in tpm2_load_cmd()
444 rc = tpm_buf_append_name(chip, buf, options->keyhandle, NULL); in tpm2_load_cmd()
/linux/drivers/char/tpm/
H A Dtpm2-sessions.c1108 u32 val, param_len, keyhandle; in tpm2_parse_create_primary() local
1110 keyhandle = tpm_buf_read_u32(buf, &offset_r); in tpm2_parse_create_primary()
1112 *handle = keyhandle; in tpm2_parse_create_primary()
1114 tpm2_flush_context(chip, keyhandle); in tpm2_parse_create_primary()