tpm_buf
void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length)
void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value)
void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value)
void tpm_buf_append_u32(struct tpm_buf *buf, const u32 value)
void tpm_buf_append_handle(struct tpm_chip *chip, struct tpm_buf *buf, u32 handle)
static void tpm_buf_read(struct tpm_buf *buf, off_t *offset, size_t count, void *output)
int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal)
u8 tpm_buf_read_u8(struct tpm_buf *buf, off_t *offset)
u16 tpm_buf_read_u16(struct tpm_buf *buf, off_t *offset)
u32 tpm_buf_read_u32(struct tpm_buf *buf, off_t *offset)
void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal)
int tpm_buf_init_sized(struct tpm_buf *buf)
void tpm_buf_reset_sized(struct tpm_buf *buf)
void tpm_buf_destroy(struct tpm_buf *buf)
u32 tpm_buf_length(struct tpm_buf *buf)
ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
struct tpm_buf tpm_buf;
if (tpm_buf_init(&tpm_buf, TPM_TAG_RQU_COMMAND, TPM_ORD_READPUBEK))
tpm_buf_append(&tpm_buf, anti_replay, sizeof(anti_replay));
if (tpm_transmit_cmd(chip, &tpm_buf, READ_PUBEK_RESULT_MIN_BODY_SIZE,
out = (struct tpm_readpubek_out *)&tpm_buf.data[10];
tpm_buf_destroy(&tpm_buf);
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
struct tpm_buf buf;
static int tpm2_parse_create_primary(struct tpm_chip *chip, struct tpm_buf *buf,
struct tpm_buf buf;
struct tpm_buf template;
struct tpm_buf buf;
int tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf,
void tpm_buf_append_auth(struct tpm_chip *chip, struct tpm_buf *buf,
void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf,
static void tpm_buf_append_salt(struct tpm_buf *buf, struct tpm_chip *chip,
int tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf)
int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf,
struct tpm_buf *buf)
struct tpm_buf buf;
struct tpm_buf tbuf;
struct tpm_buf tbuf;
struct tpm_buf buf;
int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal);
void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal);
int tpm_buf_init_sized(struct tpm_buf *buf);
void tpm_buf_reset_sized(struct tpm_buf *buf);
void tpm_buf_destroy(struct tpm_buf *buf);
u32 tpm_buf_length(struct tpm_buf *buf);
void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length);
void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value);
void tpm_buf_append_u16(struct tpm_buf *buf, const u16 value);
void tpm_buf_append_u32(struct tpm_buf *buf, const u32 value);
u8 tpm_buf_read_u8(struct tpm_buf *buf, off_t *offset);
u16 tpm_buf_read_u16(struct tpm_buf *buf, off_t *offset);
u32 tpm_buf_read_u32(struct tpm_buf *buf, off_t *offset);
void tpm_buf_append_handle(struct tpm_chip *chip, struct tpm_buf *buf, u32 handle);
extern ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_buf *buf,
static inline void tpm_buf_append_empty_auth(struct tpm_buf *buf, u32 handle)
static inline void tpm_buf_append_empty_auth(struct tpm_buf *buf, u32 handle)
int tpm_buf_append_name(struct tpm_chip *chip, struct tpm_buf *buf,
void tpm_buf_append_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf,
void tpm_buf_append_auth(struct tpm_chip *chip, struct tpm_buf *buf,
int tpm_buf_fill_hmac_session(struct tpm_chip *chip, struct tpm_buf *buf);
int tpm_buf_check_hmac_response(struct tpm_chip *chip, struct tpm_buf *buf,
struct tpm_buf *buf)
struct tpm_buf *buf,
struct tpm_buf buf;
static int osap(struct tpm_buf *tb, struct osapsess *s,
static int oiap(struct tpm_buf *tb, uint32_t *handle, unsigned char *nonce)
static int tpm_seal(struct tpm_buf *tb, uint16_t keytype,
static int tpm_unseal(struct tpm_buf *tb,
struct tpm_buf tb;
struct tpm_buf tb;
static void tpm2_buf_append_auth(struct tpm_buf *buf, u32 session_handle,
struct tpm_buf buf, sized;
struct tpm_buf buf;
struct tpm_buf buf;