Home | History | Annotate | Download | only in tpm2
      1 This repository contains source code derived from the TCG TPM 2.0 library
      2 specification
      3 
      4 (http://www.trustedcomputinggroup.org/resources/tpm_library_specification)
      5 
      6 The specification consists of four separate PDF files, two of them, part 3 and
      7 part 4 contain sample C code.
      8 
      9 To extract the C code from PDF files, first they were converted to text using
     10 the pdftotext utility available in poppler-utils Ubuntu package:
     11 
     12 pdftotext -eol unix -layout 'TPM/2.0/TPM Rev 2.0 Part 3 - Commands 01.16-code.pdf' part3.txt
     13 pdftotext -eol unix -layout 'TPM Rev 2.0 Part 4 - Supporting Routines 01.16-code.pdf' part4.txt
     14 
     15 A newline needed to be added to each of the text files to make sure the last
     16 function in the file is processed properly.
     17 
     18 echo >> part3.txt
     19 echo >> part4.txt
     20 
     21 Then the two scripts included in this directory for references were used to
     22 pull out code from the text files. The two files format source code
     23 differently, the easiest way to pull out the code is to use two different
     24 scripts:
     25 
     26 ./parsep3 part3.txt
     27 ./parsep4 part4.txt
     28 
     29 See LICENSE file for details.
     30