/xen-4.10.0-shim-comet/stubdom/vtpm/ |
A D | vtpm_cmd.h | 23 TPM_RESULT VTPM_GetRandom(struct tpmfront_dev* tpmfront_dev, BYTE* bytes, UINT32* numbytes); 25 TPM_RESULT VTPM_LoadHashKey(struct tpmfront_dev* tpmfront_dev, uint8_t** data, size_t* data_length); 27 TPM_RESULT VTPM_SaveHashKey(struct tpmfront_dev* tpmfront_dev, uint8_t* data, size_t data_length); 29 TPM_RESULT VTPM_PCRRead(struct tpmfront_dev* tpmfront_dev, UINT32 pcrIndex, BYTE* outDigest);
|
A D | vtpmblk.h | 23 int init_vtpmblk(struct tpmfront_dev* tpmfront_dev); 27 int write_vtpmblk(struct tpmfront_dev* tpmfront_dev, uint8_t *data, size_t data_length); 29 int read_vtpmblk(struct tpmfront_dev* tpmfront_dev, uint8_t **data, size_t *data_length);
|
A D | vtpm_cmd.c | 95 TPM_RESULT VTPM_GetRandom(struct tpmfront_dev* tpmfront_dev, BYTE* bytes, UINT32 *numbytes) { in VTPM_GetRandom() argument 113 TRYFAILGOTOMSG(tpmfront_cmd(tpmfront_dev, cmdbuf, size, &resp, &resplen), in VTPM_GetRandom() 137 TPM_RESULT VTPM_LoadHashKey(struct tpmfront_dev* tpmfront_dev, uint8_t** data, size_t* data_length) in VTPM_LoadHashKey() argument 156 TRYFAILGOTOMSG(tpmfront_cmd(tpmfront_dev, cmdbuf, size, &resp, &resplen), ERR_TPMFRONT); in VTPM_LoadHashKey() 181 TPM_RESULT VTPM_SaveHashKey(struct tpmfront_dev* tpmfront_dev, uint8_t* data, size_t data_length) in VTPM_SaveHashKey() argument 202 TRYFAILGOTOMSG(tpmfront_cmd(tpmfront_dev, cmdbuf, size, &resp, &resplen), ERR_TPMFRONT); in VTPM_SaveHashKey() 220 extern struct tpmfront_dev* tpmfront_dev; 244 TRYFAILGOTOMSG(tpmfront_cmd(tpmfront_dev, cmdbuf, size, &resp, &resplen), ERR_TPMFRONT); in VTPM_GetParentQuote() 266 TPM_RESULT VTPM_PCRRead(struct tpmfront_dev* tpmfront_dev, UINT32 pcrIndex, BYTE* outDigest) in VTPM_PCRRead() argument 285 TRYFAILGOTOMSG(tpmfront_cmd(tpmfront_dev, cmdbuf, size, &resp, &resplen), ERR_TPMFRONT); in VTPM_PCRRead()
|
A D | vtpm_pcrs.h | 48 struct tpmfront_dev; 50 TPM_RESULT vtpm_initialize_hw_pcrs(struct tpmfront_dev* tpmfront_dev, unsigned long pcrs);
|
A D | vtpm_pcrs.c | 27 TPM_RESULT vtpm_initialize_hw_pcrs(struct tpmfront_dev* tpmfront_dev, unsigned long pcrs) in vtpm_initialize_hw_pcrs() argument 34 if((rc = VTPM_PCRRead(tpmfront_dev, i, digest)) != TPM_SUCCESS) { in vtpm_initialize_hw_pcrs()
|
A D | vtpm.c | 57 struct tpmfront_dev* tpmfront_dev; variable 65 return read_vtpmblk(tpmfront_dev, data, data_length); in vtpm_read_from_file() 69 return write_vtpmblk(tpmfront_dev, data, data_length); in vtpm_write_to_file() 105 TPM_RESULT rc = VTPM_GetRandom(tpmfront_dev, data, &sz); in tpm_entropy_source() 136 tpmfront_cmd(tpmfront_dev, tpmcmd->req, tpmcmd->req_len, &tpmcmd->resp, &size); in check_passthru() 146 tpmfront_cmd(tpmfront_dev, tpmcmd->req, tpmcmd->req_len, &tpmcmd->resp, &size); in check_passthru() 222 if(vtpm_initialize_hw_pcrs(tpmfront_dev, opt_args.hwinitpcrs) != TPM_SUCCESS) { in main_loop() 471 if((tpmfront_dev = init_tpmfront(NULL)) == NULL) { in main() 483 if(init_vtpmblk(tpmfront_dev)) { in main() 497 shutdown_tpmfront(tpmfront_dev); in main()
|
A D | vtpmblk.c | 31 int init_vtpmblk(struct tpmfront_dev* tpmfront_dev) in init_vtpmblk() argument 239 int write_vtpmblk(struct tpmfront_dev* tpmfront_dev, uint8_t* data, size_t data_length) { in write_vtpmblk() argument 263 if((rc = VTPM_SaveHashKey(tpmfront_dev, hashkey, HASHKEYSZ)) != TPM_SUCCESS) { in write_vtpmblk() 273 int read_vtpmblk(struct tpmfront_dev* tpmfront_dev, uint8_t** data, size_t *data_length) { in read_vtpmblk() argument 284 if((rc = VTPM_LoadHashKey(tpmfront_dev, &hashkey, &keysize)) != TPM_SUCCESS) { in read_vtpmblk()
|
/xen-4.10.0-shim-comet/stubdom/vtpmmgr/ |
A D | init.c | 449 struct tpmfront_dev* tpmfront_dev; in vtpmmgr_init() local 450 if((tpmfront_dev = init_tpmfront(NULL)) == NULL) { in vtpmmgr_init() 455 vtpm_globals.tpm_fd = tpmfront_open(tpmfront_dev); in vtpmmgr_init() 717 struct tpmfront_dev* tpmfront_dev; in vtpmmgr2_init() local 718 if ((tpmfront_dev = init_tpmfront(NULL)) == NULL) { in vtpmmgr2_init() 723 vtpm_globals.tpm_fd = tpmfront_open(tpmfront_dev); in vtpmmgr2_init()
|
/xen-4.10.0-shim-comet/stubdom/grub/ |
A D | kexec.c | 151 struct tpmfront_dev* tpm = init_tpmfront(NULL); in tpm_hash2pcr()
|