jiazhang0 / efi-tpm2-utils Goto Github PK
View Code? Open in Web Editor NEWTPM 2.0 tools running in EFI environment
License: BSD 2-Clause "Simplified" License
TPM 2.0 tools running in EFI environment
License: BSD 2-Clause "Simplified" License
efi-tpm2-utils ============== This project provides various TPM 2.0 applications running in EFI. Build ----- $ make Note: use "CROSS_COMPILE=" in command line to specify cross compilation. Installation ------------ $ sudo make install Tools ----- * fake-etet.efi Install a fake ETET if UEFI BIOS doesn't have. Usage: fake-etet.efi Example: ETET (version 1, number of events 0) detected Skip to install a fake ETET ETET triggered * tpm2-capability.efi Show the capability information of TPM 1.x/2.0 device. Usage: tpm2-capability.efi Example: Structure Size: 36-byte Structure Version: 1.1 Protocol Version: 1.1 Supported Hash Algorithm: 0x3 (SHA-1 SHA-256) Supported Event Log Format: 0x3 (TCG1.2 TCG2.0) TPM Present: True Max Command Size: 3968-byte Max Response Size: 3968-byte Manufacturer ID: 0x494E5443 Number of PCR Banks: 2 Active PCR Banks: 0x1 (SHA-1) * tpm2-eventlog.efi Show the content of normal event logs. Usage: tpm2-eventlog.efi Example: TCG 1.2 Normal Event Logs: [01] PCR Index: 0 Event Type: 0x8 (S-CRTM version) Digest: C42FEDAD268200CB1D15F97841C344E79DAE3320 Event Size: 16-byte Event Data: 1EFB6B540C1D5540A4AD4EF4BF17B83A [02] PCR Index: 0 Event Type: 0x1 (Post code) Digest: 81AA09B1BAD84B72E3103B7169F02A667D833C45 Event Size: 16-byte Event Data: 0010B4FF000000000070400000000000 [03] PCR Index: 7 Event Type: 0x80000001 (EFI variable driver config) Digest: 2F20112A3F55398B208E0C42681389B4CB5B1823 Event Size: 52-byte Event Data: Variable name: Efi Unicode name length: 20-byte Variable data length: 0-byte Unicode name: SecureBoot Variable data: ...omitted
TCG_PCR_EVENT contains 1 byte of Event data. Event size is the total amount of event data, and the advance statement does not take this into account.
Event = (TCG_PCR_EVENT *)((UINT8 *)(Event + 1) + Event->EventSize);
should be
Event = (TCG_PCR_EVENT *)((UINT8 *)(Event + 1) + Event->EventSize - 1);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.