Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dtpm_buf.h38 struct tpm_buf { struct
46 void tpm_buf_init(struct tpm_buf *buf, u16 buf_size); argument
47 void tpm_buf_init_sized(struct tpm_buf *buf, u16 buf_size);
48 void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal);
49 void tpm_buf_reset_sized(struct tpm_buf *buf);
50 u16 tpm_buf_length(struct tpm_buf *buf);
51 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length);
52 void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value);
53 void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value);
54 void tpm_buf_append_u32(struct tpm_buf *buf, const u32 value);
[all …]
H A Dtpm.h247 extern ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
258 static inline void tpm_buf_append_empty_auth(struct tpm_buf *buf, u32 handle) in tpm_buf_append_empty_auth()
294 static inline void tpm_buf_append_empty_auth(struct tpm_buf *buf, u32 handle) in tpm_buf_append_empty_auth()
308 int tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf,
310 void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf,
313 void tpm_buf_append_auth(struct tpm_chip *chip, struct tpm_buf *buf,
319 int tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf);
320 int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf,
335 struct tpm_buf *buf) in tpm_buf_fill_hmac_session()
341 struct tpm_buf *buf, in tpm_buf_check_hmac_response()
/linux/drivers/char/tpm/
H A Dtpm-buf.c10 static void __tpm_buf_size_invariant(struct tpm_buf *buf, u16 buf_size) in __tpm_buf_size_invariant()
28 static void __tpm_buf_reset(struct tpm_buf *buf, u16 buf_size, u16 tag, in __tpm_buf_reset()
50 static void __tpm_buf_reset_sized(struct tpm_buf *buf, u16 buf_size) in __tpm_buf_reset_sized()
70 void tpm_buf_init(struct tpm_buf *buf, u16 buf_size) in tpm_buf_init()
82 void tpm_buf_init_sized(struct tpm_buf *buf, u16 buf_size) in tpm_buf_init_sized()
95 void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal) in tpm_buf_reset()
107 void tpm_buf_reset_sized(struct tpm_buf *buf) in tpm_buf_reset_sized()
121 u16 tpm_buf_length(struct tpm_buf *buf) in tpm_buf_length()
133 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length) in tpm_buf_append()
156 void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value) in tpm_buf_append_u8()
[all …]
H A Dtpm2-cmd.c116 struct tpm_buf *buf __free(kfree) = NULL; in tpm2_pcr_read()
176 struct tpm_buf *buf __free(kfree) = NULL; in tpm2_pcr_extend()
252 struct tpm_buf *buf __free(kfree) = NULL; in tpm2_get_random()
333 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_flush_context()
365 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_get_tpm_pt()
405 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_shutdown()
434 struct tpm_buf *buf __free(kfree) = NULL; in tpm2_do_selftest()
471 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_probe()
531 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_get_pcr_allocation()
600 struct tpm_buf *bu in tpm2_get_cc_attrs_tbl()
[all...]
H A Dtpm-sysfs.c40 struct tpm_buf *tpm_buf __free(kfree) = NULL; in pubek_show()
47 tpm_buf = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in pubek_show()
48 if (!tpm_buf) { in pubek_show()
53 tpm_buf_init(tpm_buf, TPM_BUFSIZE); in pubek_show()
54 tpm_buf_reset(tpm_buf, TPM_TAG_RQU_COMMAND, TPM_ORD_READPUBEK); in pubek_show()
55 tpm_buf_append(tpm_buf, anti_replay, sizeof(anti_replay)); in pubek_show()
57 if (tpm_transmit_cmd(chip, tpm_buf, READ_PUBEK_RESULT_MIN_BODY_SIZE, in pubek_show()
63 out = (struct tpm_readpubek_out *)&tpm_buf->data[10]; in pubek_show()
H A Dtpm1-cmd.c321 struct tpm_buf *buf __free(kfree) = NULL; in tpm1_startup()
458 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm1_pcr_extend()
475 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm1_getcap()
518 struct tpm_buf *buf __free(kfree) = NULL; in tpm1_get_random()
571 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm1_pcr_read()
601 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm1_continue_selftest()
720 struct tpm_buf *buf __free(kfree) = NULL; in tpm1_pm_suspend()
H A Dtpm2-sessions.c170 struct tpm_buf *buf __free(kfree) = NULL; in tpm2_read_public()
235 * As with most tpm_buf operations, success is assumed because failure
241 int tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_append_name()
309 void tpm_buf_append_auth(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_append_auth()
356 * As with most tpm_buf operations, success is assumed because failure
360 void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_append_hmac_session()
485 static int tpm_buf_append_salt(struct tpm_buf *buf, struct tpm_chip *chip, in tpm_buf_append_salt()
596 int tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf) in tpm_buf_fill_hmac_session()
772 int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_buf_check_hmac_response()
922 struct tpm_buf *bu in tpm2_parse_start_auth_session()
[all...]
H A Dtpm2-space.c65 struct tpm_buf *tbuf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_load_context()
114 struct tpm_buf *tbuf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_save_context()
H A Dtpm-interface.c264 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf, in tpm_transmit_cmd()
H A Dtpm_vtpm_proxy.c402 struct tpm_buf *buf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in vtpm_proxy_request_locality()
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c204 static void tpm2_buf_append_auth(struct tpm_buf *buf, u32 session_handle, in tpm2_buf_append_auth()
237 struct tpm_buf *buf __free(kfree) = NULL; in tpm2_seal_trusted()
238 struct tpm_buf *sized __free(kfree) = NULL; in tpm2_seal_trusted()
380 struct tpm_buf *buf __free(kfree) = NULL; in tpm2_load_cmd()
489 struct tpm_buf *buf __free(kfree) = NULL; in tpm2_unseal_cmd()
H A Dtrusted_tpm1.c319 static int trusted_tpm_send(struct tpm_buf *buf) in trusted_tpm_send()
359 static int osap(struct tpm_buf *tb, struct osapsess *s, in osap()
394 static int oiap(struct tpm_buf *tb, uint32_t *handle, unsigned char *nonce) in oiap()
424 static int tpm_seal(struct tpm_buf *tb, uint16_t keytype, in tpm_seal()
540 static int tpm_unseal(struct tpm_buf *tb, in tpm_unseal()
631 struct tpm_buf *tb __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in key_seal()
657 struct tpm_buf *tb __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in key_unseal()