coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
tss_internal.h File Reference
#include <stdint.h>
Include dependency graph for tss_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define kTpmRequestHeaderLength   10
 
#define kTpmResponseHeaderLength   10
 
#define kTpmReadInfoLength   12
 
#define kEncAuthLength   20
 
#define kPcrDigestLength   20
 

Functions

static void to_tpm_uint32 (uint8_t *buffer, uint32_t x)
 
static void from_tpm_uint32 (const uint8_t *buffer, uint32_t *x)
 
static void to_tpm_uint16 (uint8_t *buffer, uint16_t x)
 
static void from_tpm_uint16 (const uint8_t *buffer, uint16_t *x)
 

Macro Definition Documentation

◆ kEncAuthLength

#define kEncAuthLength   20

Definition at line 15 of file tss_internal.h.

◆ kPcrDigestLength

#define kPcrDigestLength   20

Definition at line 16 of file tss_internal.h.

◆ kTpmReadInfoLength

#define kTpmReadInfoLength   12

Definition at line 14 of file tss_internal.h.

◆ kTpmRequestHeaderLength

#define kTpmRequestHeaderLength   10

Definition at line 12 of file tss_internal.h.

◆ kTpmResponseHeaderLength

#define kTpmResponseHeaderLength   10

Definition at line 13 of file tss_internal.h.

Function Documentation

◆ from_tpm_uint16()

static void from_tpm_uint16 ( const uint8_t buffer,
uint16_t x 
)
inlinestatic

Definition at line 58 of file tss_internal.h.

References buffer, and x.

◆ from_tpm_uint32()

static void from_tpm_uint32 ( const uint8_t buffer,
uint32_t x 
)
inlinestatic

Definition at line 36 of file tss_internal.h.

References buffer, and x.

Referenced by tlcl_get_permanent_flags(), tlcl_get_permissions(), tlcl_read(), tpm_command_code(), and tpm_command_size().

Here is the caller graph for this function:

◆ to_tpm_uint16()

static void to_tpm_uint16 ( uint8_t buffer,
uint16_t  x 
)
inlinestatic

Definition at line 48 of file tss_internal.h.

References buffer, and x.

◆ to_tpm_uint32()

static void to_tpm_uint32 ( uint8_t buffer,
uint32_t  x 
)
inlinestatic

Definition at line 24 of file tss_internal.h.

References buffer, and x.

Referenced by set_tpm_command_size(), tlcl_define_space(), tlcl_extend(), tlcl_get_permissions(), tlcl_read(), and tlcl_write().

Here is the caller graph for this function: