file_parser.h File Reference

Intel(R) EPID issuer material parsing utilities. More...

#include <stddef.h>
#include "epid/common/errors.h"
#include "epid/common/types.h"

Data Structures

struct  EpidFileHeader
 Intel(R) EPID binary file header. More...
 
struct  EpidCaCertificate
 IoT CA Certificate binary format. More...
 

Enumerations

enum  EpidVersion { kEpid1x, kEpid2x, kNumEpidVersions }
 Recognized Intel(R) EPID versions. More...
 
enum  EpidFileType {
  kIssuingCaPubKeyFile, kGroupPubKeyFile, kPrivRlFile, kSigRlFile,
  kGroupRlFile, kPrivRlRequestFile, kSigRlRequestFile, kGroupRlRequestFile,
  kNumFileTypes
}
 Recognized Intel(R) EPID file types. More...
 

Functions

EpidStatus EpidParseFileHeader (void const *buf, size_t len, EpidVersion *epid_version, EpidFileType *file_type)
 Extracts Intel(R) EPID Binary Output File header information. More...
 
EpidStatus EpidParseGroupPubKeyFile (void const *buf, size_t len, EpidCaCertificate const *cert, GroupPubKey *pubkey)
 Extracts group public key from buffer in issuer binary format. More...
 
EpidStatus EpidParsePrivRlFile (void const *buf, size_t len, EpidCaCertificate const *cert, PrivRl *rl, size_t *rl_len)
 Extracts private key revocation list from buffer in issuer binary format. More...
 
EpidStatus EpidParseSigRlFile (void const *buf, size_t len, EpidCaCertificate const *cert, SigRl *rl, size_t *rl_len)
 Extracts signature revocation list from buffer in issuer binary format. More...
 
EpidStatus EpidParseGroupRlFile (void const *buf, size_t len, EpidCaCertificate const *cert, GroupRl *rl, size_t *rl_len)
 Extracts group revocation list from buffer in issuer binary format. More...
 

Variables

const OctStr16 kEpidVersionCode [kNumEpidVersions]
 Encoding of issuer material Intel(R) EPID versions.
 
const OctStr16 kEpidFileTypeCode [kNumFileTypes]
 Encoding of issuer material file types.
 

Detailed Description

Intel(R) EPID issuer material parsing utilities.