Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
trusted.h File Reference

Go to the source code of this file.

Data Structures

struct  tpm_buf
 
struct  osapsess
 
struct  trusted_key_options
 

Macros

#define MAX_PCRINFO_SIZE   64
 
#define MAX_BUF_SIZE   512
 
#define TPM_GETRANDOM_SIZE   14
 
#define TPM_OSAP_SIZE   36
 
#define TPM_OIAP_SIZE   10
 
#define TPM_SEAL_SIZE   87
 
#define TPM_UNSEAL_SIZE   104
 
#define TPM_SIZE_OFFSET   2
 
#define TPM_RETURN_OFFSET   6
 
#define TPM_DATA_OFFSET   10
 
#define LOAD32(buffer, offset)   (ntohl(*(uint32_t *)&buffer[offset]))
 
#define LOAD32N(buffer, offset)   (*(uint32_t *)&buffer[offset])
 
#define LOAD16(buffer, offset)   (ntohs(*(uint16_t *)&buffer[offset]))
 
#define INIT_BUF(tb)   (tb->len = 0)
 
#define TPM_DEBUG   0
 

Enumerations

enum  { SEAL_keytype = 1, SRK_keytype = 4 }
 

Macro Definition Documentation

#define INIT_BUF (   tb)    (tb->len = 0)

Definition at line 25 of file trusted.h.

#define LOAD16 (   buffer,
  offset 
)    (ntohs(*(uint16_t *)&buffer[offset]))

Definition at line 18 of file trusted.h.

#define LOAD32 (   buffer,
  offset 
)    (ntohl(*(uint32_t *)&buffer[offset]))

Definition at line 16 of file trusted.h.

#define LOAD32N (   buffer,
  offset 
)    (*(uint32_t *)&buffer[offset])

Definition at line 17 of file trusted.h.

#define MAX_BUF_SIZE   512

Definition at line 6 of file trusted.h.

#define MAX_PCRINFO_SIZE   64

Definition at line 5 of file trusted.h.

#define TPM_DATA_OFFSET   10

Definition at line 14 of file trusted.h.

#define TPM_DEBUG   0

Definition at line 49 of file trusted.h.

#define TPM_GETRANDOM_SIZE   14

Definition at line 7 of file trusted.h.

#define TPM_OIAP_SIZE   10

Definition at line 9 of file trusted.h.

#define TPM_OSAP_SIZE   36

Definition at line 8 of file trusted.h.

#define TPM_RETURN_OFFSET   6

Definition at line 13 of file trusted.h.

#define TPM_SEAL_SIZE   87

Definition at line 10 of file trusted.h.

#define TPM_SIZE_OFFSET   2

Definition at line 12 of file trusted.h.

#define TPM_UNSEAL_SIZE   104

Definition at line 11 of file trusted.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
SEAL_keytype 
SRK_keytype 

Definition at line 34 of file trusted.h.