Searched refs:tpm_buf (Results 1 – 11 of 11) sorted by relevance
| /linux/drivers/char/tpm/ |
| H A D | tpm-buf.c | 18 int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal) in tpm_buf_init() 35 void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal) in tpm_buf_reset() 57 int tpm_buf_init_sized(struct tpm_buf *buf) in tpm_buf_init_sized() 72 void tpm_buf_reset_sized(struct tpm_buf *buf) in tpm_buf_reset_sized() 81 void tpm_buf_destroy(struct tpm_buf *buf) in tpm_buf_destroy() 93 u32 tpm_buf_length(struct tpm_buf *buf) in tpm_buf_length() 105 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length) in tpm_buf_append() 127 void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value) in tpm_buf_append_u8() 133 void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value) in tpm_buf_append_u16() 141 void tpm_buf_append_u32(struct tpm_buf *buf, const u32 value) in tpm_buf_append_u32() [all …]
|
| H A D | tpm2-cmd.c | 122 struct tpm_buf buf; in tpm2_pcr_read() 187 struct tpm_buf buf; in tpm2_pcr_extend() 261 struct tpm_buf buf; in tpm2_get_random() 352 struct tpm_buf buf; in tpm2_flush_context() 392 struct tpm_buf buf; in tpm2_get_tpm_pt() 433 struct tpm_buf buf; in tpm2_shutdown() 459 struct tpm_buf buf; in tpm2_do_selftest() 497 struct tpm_buf buf; in tpm2_probe() 553 struct tpm_buf buf; in tpm2_get_pcr_allocation() 629 struct tpm_buf buf; in tpm2_get_cc_attrs_tbl() [all …]
|
| H A D | tpm-sysfs.c | 35 struct tpm_buf tpm_buf; in pubek_show() local 47 if (tpm_buf_init(&tpm_buf, TPM_TAG_RQU_COMMAND, TPM_ORD_READPUBEK)) in pubek_show() 50 tpm_buf_append(&tpm_buf, anti_replay, sizeof(anti_replay)); in pubek_show() 52 if (tpm_transmit_cmd(chip, &tpm_buf, READ_PUBEK_RESULT_MIN_BODY_SIZE, in pubek_show() 56 out = (struct tpm_readpubek_out *)&tpm_buf.data[10]; in pubek_show() 75 tpm_buf_destroy(&tpm_buf); in pubek_show()
|
| H A D | tpm1-cmd.c | 326 struct tpm_buf buf; in tpm1_startup() 466 struct tpm_buf buf; in tpm1_pcr_extend() 485 struct tpm_buf buf; in tpm1_getcap() 534 struct tpm_buf buf; in tpm1_get_random() 586 struct tpm_buf buf; in tpm1_pcr_read() 622 struct tpm_buf buf; in tpm1_continue_selftest() 745 struct tpm_buf buf; in tpm1_pm_suspend()
|
| H A D | tpm2-sessions.c | 171 struct tpm_buf buf; in tpm2_read_public() 248 int tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_append_name() 313 void tpm_buf_append_auth(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_append_auth() 364 void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_append_hmac_session() 489 static void tpm_buf_append_salt(struct tpm_buf *buf, struct tpm_chip *chip, in tpm_buf_append_salt() 582 int tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf) in tpm_buf_fill_hmac_session() 758 int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_check_hmac_response() 908 struct tpm_buf *buf) in tpm2_parse_start_auth_session() 985 struct tpm_buf buf; in tpm2_start_auth_session() 1079 static int tpm2_parse_create_primary(struct tpm_chip *chip, struct tpm_buf *buf, in tpm2_parse_create_primary() [all …]
|
| H A D | tpm2-space.c | 74 struct tpm_buf tbuf; in tpm2_load_context() 128 struct tpm_buf tbuf; in tpm2_save_context()
|
| H A D | tpm-interface.c | 264 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_transmit_cmd()
|
| H A D | tpm_vtpm_proxy.c | 398 struct tpm_buf buf; in vtpm_proxy_request_locality()
|
| /linux/include/linux/ |
| H A D | tpm.h | 383 struct tpm_buf { struct 418 int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal); 419 void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal); 420 int tpm_buf_init_sized(struct tpm_buf *buf); 421 void tpm_buf_reset_sized(struct tpm_buf *buf); 422 void tpm_buf_destroy(struct tpm_buf *buf); 423 u32 tpm_buf_length(struct tpm_buf *buf); 424 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length); 425 void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value); 426 void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value); [all …]
|
| /linux/security/keys/trusted-keys/ |
| H A D | trusted_tpm1.c | 316 struct tpm_buf buf; in trusted_tpm_send() 358 static int osap(struct tpm_buf *tb, struct osapsess *s, in osap() 393 static int oiap(struct tpm_buf *tb, uint32_t *handle, unsigned char *nonce) in oiap() 423 static int tpm_seal(struct tpm_buf *tb, uint16_t keytype, in tpm_seal() 539 static int tpm_unseal(struct tpm_buf *tb, in tpm_unseal() 628 struct tpm_buf tb; in key_seal() 654 struct tpm_buf tb; in key_unseal()
|
| H A D | trusted_tpm2.c | 204 static void tpm2_buf_append_auth(struct tpm_buf *buf, u32 session_handle, in tpm2_buf_append_auth() 237 struct tpm_buf buf, sized; in tpm2_seal_trusted() 376 struct tpm_buf buf; in tpm2_load_cmd() 485 struct tpm_buf buf; in tpm2_unseal_cmd()
|