Home
last modified time | relevance | path

Searched refs:tpm_buf (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/include/keys/
Dtrusted.h20 struct tpm_buf { struct
49 int oiap(struct tpm_buf *tb, uint32_t *handle, unsigned char *nonce);
113 static inline void store8(struct tpm_buf *buf, const unsigned char value) in store8()
118 static inline void store16(struct tpm_buf *buf, const uint16_t value) in store16()
124 static inline void store32(struct tpm_buf *buf, const uint32_t value) in store32()
130 static inline void storebytes(struct tpm_buf *buf, const unsigned char *in, in storebytes()
/Linux-v5.4/drivers/char/tpm/
Dtpm.h286 struct tpm_buf { struct
292 static inline void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal) in tpm_buf_reset() argument
301 static inline int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal) in tpm_buf_init()
313 static inline void tpm_buf_destroy(struct tpm_buf *buf) in tpm_buf_destroy()
319 static inline u32 tpm_buf_length(struct tpm_buf *buf) in tpm_buf_length()
326 static inline u16 tpm_buf_tag(struct tpm_buf *buf) in tpm_buf_tag()
333 static inline void tpm_buf_append(struct tpm_buf *buf, in tpm_buf_append()
354 static inline void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value) in tpm_buf_append_u8()
359 static inline void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value) in tpm_buf_append_u16()
366 static inline void tpm_buf_append_u32(struct tpm_buf *buf, const u32 value) in tpm_buf_append_u32()
[all …]
Dtpm2-cmd.c180 struct tpm_buf buf; in tpm2_pcr_read()
252 struct tpm_buf buf; in tpm2_pcr_extend()
305 struct tpm_buf buf; in tpm2_get_random()
364 struct tpm_buf buf; in tpm2_flush_context()
391 static void tpm2_buf_append_auth(struct tpm_buf *buf, u32 session_handle, in tpm2_buf_append_auth()
424 struct tpm_buf buf; in tpm2_seal_trusted()
538 struct tpm_buf buf; in tpm2_load_cmd()
602 struct tpm_buf buf; in tpm2_unseal_cmd()
696 struct tpm_buf buf; in tpm2_get_tpm_pt()
728 struct tpm_buf buf; in tpm2_shutdown()
[all …]
Dtpm-sysfs.c35 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()
86 tpm_buf_destroy(&tpm_buf); in pubek_show()
Dtpm1-cmd.c326 struct tpm_buf buf; in tpm1_startup()
451 struct tpm_buf buf; in tpm1_pcr_extend()
470 struct tpm_buf buf; in tpm1_getcap()
519 struct tpm_buf buf; in tpm1_get_random()
571 struct tpm_buf buf; in tpm1_pcr_read()
607 struct tpm_buf buf; in tpm1_continue_selftest()
725 struct tpm_buf buf; in tpm1_pm_suspend()
Dtpm-interface.c212 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_transmit_cmd()
354 struct tpm_buf buf; in tpm_send()
Dtpm2-space.c71 struct tpm_buf tbuf; in tpm2_load_context()
122 struct tpm_buf tbuf; in tpm2_save_context()
Dtpm_vtpm_proxy.c397 struct tpm_buf buf; in vtpm_proxy_request_locality()
/Linux-v5.4/crypto/asymmetric_keys/
Dasym_tpm.c34 static int tpm_loadkey2(struct tpm_buf *tb, in tpm_loadkey2()
102 static int tpm_flushspecific(struct tpm_buf *tb, uint32_t handle) in tpm_flushspecific()
118 static int tpm_unbind(struct tpm_buf *tb, in tpm_unbind()
204 static int tpm_sign(struct tpm_buf *tb, in tpm_sign()
522 struct tpm_buf *tb; in tpm_key_decrypt()
646 struct tpm_buf *tb; in tpm_key_sign()
/Linux-v5.4/security/keys/
Dtrusted.c398 static int osap(struct tpm_buf *tb, struct osapsess *s, in osap()
433 int oiap(struct tpm_buf *tb, uint32_t *handle, unsigned char *nonce) in oiap()
467 static int tpm_seal(struct tpm_buf *tb, uint16_t keytype, in tpm_seal()
582 static int tpm_unseal(struct tpm_buf *tb, in tpm_unseal()
673 struct tpm_buf *tb; in key_seal()
699 struct tpm_buf *tb; in key_unseal()