public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/6] Add capability to let PEIM extend TcgEvent
@ 2020-07-14  6:49 Qi Zhang
  2020-07-14  6:49 ` [PATCH 1/6] SecurityPkg/TcgPpi: Add TcgPpi header file Qi Zhang
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Qi Zhang @ 2020-07-14  6:49 UTC (permalink / raw)
  To: devel; +Cc: Qi Zhang, Jiewen Yao, Jian J Wang, Chao Zhang, Rahul Kumar

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2841

Currently, we have TCG/TCG2 protocol and DxeTpmMeasurementLib to let DXE
module extend the TCG event.
There is more and more use case in PEI phase that a PEIM need extend TCG
event, such as BootGuard, FSP, Microcode measurement. Currently, we dont
have API to do that so that each module need create TCG/TCG2 event log,
which is a burden.

This bugzilla requests to add PeiTpmMeasurementLib instance.

The implementation includes:
1) A EDKII_TCG_PPI which abstracts the HashLogExtendEvent service.
2) A PeiTpmMeasurementLib instance, so that a PEIM can call this API to
  add TCG event.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Qi Zhang <qi1.zhang@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>

Jiewen Yao (6):
  SecurityPkg/TcgPpi: Add TcgPpi header file.
  SecurityPkg/dec: Add TcgPpi.
  SecurityPkg/Tcg: Add TcgPpi
  SecurityPkg/Tcg2: Add TcgPpi
  SecurityPkg/PeiTpmMeasurementLib: Add PEI instance.
  SecurityPkg/dsc: Add PeiTpmMeasurementLib.

 SecurityPkg/Include/Ppi/Tcg.h                 | 50 +++++++++++++
 .../PeiTpmMeasurementLib.c                    | 73 +++++++++++++++++++
 .../PeiTpmMeasurementLib.inf                  | 50 +++++++++++++
 .../PeiTpmMeasurementLib.uni                  | 17 +++++
 SecurityPkg/SecurityPkg.dec                   |  3 +
 SecurityPkg/SecurityPkg.dsc                   |  4 +-
 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c             | 61 +++++++++++++---
 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf           |  3 +-
 SecurityPkg/Tcg/TcgPei/TcgPei.c               | 53 +++++++++++++-
 SecurityPkg/Tcg/TcgPei/TcgPei.inf             |  3 +-
 10 files changed, 301 insertions(+), 16 deletions(-)
 create mode 100644 SecurityPkg/Include/Ppi/Tcg.h
 create mode 100644 SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.c
 create mode 100644 SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.inf
 create mode 100644 SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.uni

-- 
2.26.2.windows.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-08-04  5:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-14  6:49 [PATCH 0/6] Add capability to let PEIM extend TcgEvent Qi Zhang
2020-07-14  6:49 ` [PATCH 1/6] SecurityPkg/TcgPpi: Add TcgPpi header file Qi Zhang
2020-07-15  5:08   ` Yao, Jiewen
2020-07-15  5:53     ` Bret Barkelew
2020-07-15 14:45       ` Yao, Jiewen
     [not found]       ` <1621F444E3AD18DD.16458@groups.io>
2020-07-15 15:20         ` [edk2-devel] " Yao, Jiewen
2020-07-15 15:32           ` Bret Barkelew
2020-08-04  5:05             ` Bret Barkelew
2020-08-04  5:52               ` Yao, Jiewen
2020-07-14  6:49 ` [PATCH 2/6] SecurityPkg/dec: Add TcgPpi Qi Zhang
2020-07-14  6:49 ` [PATCH 3/6] SecurityPkg/Tcg: " Qi Zhang
2020-07-14  6:49 ` [PATCH 4/6] SecurityPkg/Tcg2: " Qi Zhang
2020-07-14  6:49 ` [PATCH 5/6] SecurityPkg/PeiTpmMeasurementLib: Add PEI instance Qi Zhang
2020-07-14  6:49 ` [PATCH 6/6] SecurityPkg/dsc: Add PeiTpmMeasurementLib Qi Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox