Skip to content

This is a simple Rust parser implementation for the TDX attestation quote.dat

Notifications You must be signed in to change notification settings

MoeMahhouk/tdx-quote-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a simple parser of the TDX Quote for both v4 and v5 versions

The quote in the repo is a v4 quote.

Build

cargo build --release

Run

cargo run --release
cargo run --bin parserV4 --release quote.dat

Example Output

Quote Header:
  Version: 4
  Attestation Key Type: 2
  TEE Type: TDX
  Reserved 1: 0000
  Reserved 2: 0000
  QE Vendor ID: 939a7233-f79c-4ca9-940a-0db3957f0607
  User Data: 28fa333a41ec7e302625d24f400f3f2400000000
TD Quote Body:
  TEE TCB SVN: 00000000000000000000000000020104
  MRSEAM: 30843fa6f79b6ad4c9460935ceac736f9ec16f60e47b5268a92767f30973a95a5ba02cee3c778a96c60e21109ad89097
  MRSIGNERSEAM: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  Seam Attributes: 0000000000000000
  TD Attributes: 8000000010000000
        TUD:
           DEBUG: False
           RESERVED: 64
        SEC:
          RESERVED: 0
          SEPT_VE_DISABLE: 0
          PKS: 0
          KL: 0
        OTHER:
          RESERVED: 16
          PERFMON: 0
  XFAM: 00000000000602e7
  MRTD: 18bcec2014a3ff000c46191e960ca4fe949f9adb2d8da557dbacee87f6ef7e2411fd5f09dc2b834506959bf69626ddf2
  MRCONFIGID: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  MROWNER: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  MROWNERCONFIG: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  RTMR0: b29e90f91d6a29cfdaaa52adfd65f6c9f1dfacf2dfec14d0b7df44a72dac21a9f76986c4115ebefecb8dd50845209809
  RTMR1: 930fc60b55e679f8348681094101c75399dc4776b19a32f6b0277f4872d8db978102cfb37c1f43eb6a71f12402103d38
  RTMR2: 6a90479d9e688add2225c755b71c1acfa3cfa69fb4c2d2fb11ace12e0af1cf90440f577ec7b0dbbf7892d4f42fc4cfee
  RTMR3: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  Report Data: 007945c010980ecf9e0c0daf6dc971bffce0eaab6d4e4b592d4c08bac29c234068adb241fa02c2ef9e443daecd91d450739c601321fe51738a6c978234758e27

About

This is a simple Rust parser implementation for the TDX attestation quote.dat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages