Coder Social home page Coder Social logo

efi-tpm2-utils's Introduction

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

efi-tpm2-utils's People

Contributors

jiazhang0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

efi-tpm2-utils's Issues

ShowTcg1EventLogs () while advancement is off by 1

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);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.