GithubHelp home page GithubHelp logo

tpm2-software's Introduction

🚧 Under Construction 🚧 Under Construction 🚧 Under Construction 🚧 Under Construction 🚧

tpm2-software

Linux TPM2 & TSS2 Software

Scripts and examples from this repository...
...related to repository https://github.com/tpm2-software
...show how to install and use TPM with TPM2 Software Stack

...intended to be used on Raspberry Pi.
...tested on Raspberry Pi 4B with Raspberry Pi OS based on Buster.

...tested with add-on boards for Raspberry Pi:

  • IRIDIUM SLM9670 TPM2.0 (purchasable at mouser.com)
  • LetsTrust TPM SLB9670 (purchasable at buyzero.de)

Further details can be found:

Prepare for setup

Plug in a TPM add-on board

Update your system

$ sudo apt update
$ sudo apt -y full-upgrade

Enable SPI interface on Raspberry Pi:
therefor edit the file: /boot/config.txt
$ sudo nano /boot/config.txt
and add dtparam=spi=on to file config.txt
or
do $ sudo raspi-config

Enable TPM support on Raspberry Pi:
therefor edit the file: /boot/config.txt
$ sudo nano /boot/config.txt
and add dtoverlay=tpm-slb9670 to file config.txt

🔥 After the above preparation steps reboot your Raspberry Pi
and check:

$ ls /dev/tpm*  
/dev/tpm0  /dev/tpmrm0

Download / clone the repository to your computer:

$ git clone https://github.com/StMaHa/tpm2-software.git

To update already cloned repository, do the following steps:

$ cd tpm2-software
$ git fetch
$ git rebase

Minimum setup

$ cd tpm2-software    
$ ./setup-tss.sh
$ ./setup-tpm2-tools.sh

Setup all

(not tested yet)

$ cd tpm2-software    
$ ./setup.sh

Testing

FAPI:

$ cd tpm2-software    
$ tss2_provision
$ tss2_getrandom --numBytes=20 -data=- | hexdump -C

ESAPI:

$ cd tpm2-software    
$ tpm2_getrandom 20 | hexdump -C

LICENSE

See the LICENSE file for license rights and limitations.


(c) Raspberry Pi is a trademark of the Raspberry Pi Foundation.

tpm2-software's People

Contributors

stmaha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.