Searched refs:tpm_buf (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/security/keys/ |
D | trusted.h | 20 struct tpm_buf { struct 101 static inline void store8(struct tpm_buf *buf, const unsigned char value) in store8() 106 static inline void store16(struct tpm_buf *buf, const uint16_t value) in store16() 112 static inline void store32(struct tpm_buf *buf, const uint32_t value) in store32() 118 static inline void storebytes(struct tpm_buf *buf, const unsigned char *in, in storebytes()
|
D | trusted.c | 393 static int osap(struct tpm_buf *tb, struct osapsess *s, in osap() 428 static int oiap(struct tpm_buf *tb, uint32_t *handle, unsigned char *nonce) in oiap() 458 static int tpm_seal(struct tpm_buf *tb, uint16_t keytype, in tpm_seal() 573 static int tpm_unseal(struct tpm_buf *tb, in tpm_unseal() 664 struct tpm_buf *tb; in key_seal() 690 struct tpm_buf *tb; in key_unseal()
|
/Linux-v4.19/drivers/char/tpm/ |
D | tpm-sysfs.c | 40 struct tpm_buf tpm_buf; in pubek_show() local 50 rc = tpm_buf_init(&tpm_buf, TPM_TAG_RQU_COMMAND, TPM_ORD_READPUBEK); in pubek_show() 54 tpm_buf_append(&tpm_buf, anti_replay, sizeof(anti_replay)); in pubek_show() 56 rc = tpm_transmit_cmd(chip, NULL, tpm_buf.data, PAGE_SIZE, in pubek_show() 60 tpm_buf_destroy(&tpm_buf); in pubek_show() 64 out = (struct tpm_readpubek_out *)&tpm_buf.data[10]; in pubek_show() 94 tpm_buf_destroy(&tpm_buf); in pubek_show()
|
D | tpm.h | 421 struct tpm_buf { struct 427 static inline void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal) in tpm_buf_reset() argument 436 static inline int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal) in tpm_buf_init() 448 static inline void tpm_buf_destroy(struct tpm_buf *buf) in tpm_buf_destroy() 454 static inline u32 tpm_buf_length(struct tpm_buf *buf) in tpm_buf_length() 461 static inline u16 tpm_buf_tag(struct tpm_buf *buf) in tpm_buf_tag() 468 static inline void tpm_buf_append(struct tpm_buf *buf, in tpm_buf_append() 489 static inline void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value) in tpm_buf_append_u8() 494 static inline void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value) in tpm_buf_append_u16() 501 static inline void tpm_buf_append_u32(struct tpm_buf *buf, const u32 value) in tpm_buf_append_u32()
|
D | tpm2-cmd.c | 189 struct tpm_buf buf; in tpm2_pcr_read() 239 struct tpm_buf buf; in tpm2_pcr_extend() 303 struct tpm_buf buf; in tpm2_get_random() 361 struct tpm_buf buf; in tpm2_flush_context_cmd() 390 static void tpm2_buf_append_auth(struct tpm_buf *buf, u32 session_handle, in tpm2_buf_append_auth() 423 struct tpm_buf buf; in tpm2_seal_trusted() 539 struct tpm_buf buf; in tpm2_load_cmd() 605 struct tpm_buf buf; in tpm2_unseal_cmd() 705 struct tpm_buf buf; in tpm2_get_tpm_pt() 737 struct tpm_buf buf; in tpm2_shutdown() [all …]
|
D | tpm2-space.c | 73 struct tpm_buf tbuf; in tpm2_load_context() 125 struct tpm_buf tbuf; in tpm2_save_context()
|
D | tpm-interface.c | 694 struct tpm_buf buf; in tpm_startup() 735 struct tpm_buf buf; in tpm_getcap() 1011 struct tpm_buf buf; in tpm1_pcr_extend()
|
D | tpm_vtpm_proxy.c | 403 struct tpm_buf buf; in vtpm_proxy_request_locality()
|