LetsTrust-TPM2Go
Update 2023 Aug 9th:
Shipment of the fist devices happens today \o/
#Applications #Tools Today, I would like to introduce my new product on TPM.DEV:
The LetsTrust-TPM2Go!
LetsTrust-TPM2Go is a USB 2.0 stick with a built-in TPM. It is designed to be compatible with Linux PCs or single-board computers that have USB-A ports (probably macOS but I could not test this).
This product's main purpose is to simplify application development with TPM support. It can also be used if your embedded device is not ready or only has free USB ports on your target device.
Windows 11: LetsTrust-TPM2Go USB Stick is NOT compatible with Microsoft Windows 11 TPM 2.0 requirement!
Windows 10: LetsTrust-TPM2Go is also not compatible with Windows 10 [1].
Features:
- Infineon Optigaβ’ SLB 9672 TPM 2.0 FW15.23
- TCG Spec 2.0 Rev. 01.59
- USB 2.0 to SPI Bridge based on CY7C65211A
- Compatible with libusb
- Own USB VendorID/ProductID
- Tested with https://github.com/tpm2-software/
- available TCTI-Driver in tpm2_tss for plug & play usage
- 2 LEDs, one for "USB-RX/TX action" and one connected to a TPM-GPIO for user feedback
- Transparent ABS housing for the PCB
- LetsTrust-TPM2Go was designed, manufactured and tested in Bavaria, Germany.
Preorders are now open, and you can find LetsTrust-TPM2Go here: buyzero.de/products/letstrust-tpm2go
With the promo code #TPMDEV2023, you'll get a 7β¬ discount on the first stick. This code is active till the end of August.
The first batch ich manufactured, updated and tested.
The estimated shipment date is latest the end of July/beginning of August.
(We are waiting for the updated Vendor ID list on www.usb.org/developers, as this final lists Pi3g as a vendor with the given number, I could finalize the sticks (I want to avoid to scrapping several 1000 Euros for a potential typo))
Bye for now!
Paul
[1] I could interact with these sticks over WSL2 on Windows 10, but without an d-bus and the abrmd only simple commands are functional :).
π
4β€οΈ
π
π‘
π
π
Explore More Posts
The latest tpm2-tools 5.8 release addresses three GitHub security advisories. One is a heap overflow in tpm2_getekcertificate, and the other is an out-of-bounds write that happens when too many sessions are in use. I donβt have information on the third advisory. Beyond the fixes, 5.8 extends EK certificate handling. It adds the option to read EK certificates from NV RAM, introduces new EK templates and supports a marshaled quote format. https://github.com/tpm2-software/tpm2-tools/releases/tag/5.8
Random Number Generator (TPM2)
1. IntroductionAmong other features, Trusted Platform Modules (TPM) comes with a True Random Number Generator (TRNG) that can be used for various applications including cryptographic purposes. This RNG module serves as the source for randomness for the TPM 2.0 Chip. A RNG module in TPM2 will typically contain the following -
An entropy source and collector
State Register
A mixing func.
There can be two types of calls to the TPMβs Random Number Generator, Internal call and External Call. RNG is capable to provide enough randomness for all the internal calls made. As well as, RNG is capable of providing 32 octets of randomness as per the specification to an external call. Another thing to note here is, each call made to the RNG produces a new value irrespective of the type of call. 1.1 The source of RandomnessThe source of entropy in the TPM is the entropy collector. As the name suggests, entropy collector collects entropy from entropy sources and also removes bias. A TPM2.0 has at least one internal source of entropy. These sources can include noise, clock variations, air movement amongst other events. As depicted in Fig 1.1 the entropy collector provides input to the State Register. 1.2 Stages involved Various algorithms and process supported by TPM calls RNG for unpredictable numbers, which is actually obtained from βRNG Protected Capabilityβ. The βDeterministic Random Bit Generator (DRBG) Protected Capabilityβ obtains entropy from βEntropy Protected Capabilityβ. Along with Entropy Protected Capability, TPM2_StirRandom() can also gather entropy from other entropy sources within the same TPM. 2. Random Numbers via TPM2 ToolsIf one needs to use TPMβs RNG for other external applications, then TPM2 Tools Command Line tools can be a great option. TPM2 Tools Command : tpm2_getrandom - - hex 16 - - hex : Converts output to hexadecimal 16 : Size in bytes Now, if one wants to have additional randomness, TPM2 Tools provides a convenient utility for this purpose called tpm2_stirrandom. To inject entropy via TPM2_StirRandom() to βEntropy Protected Capabilityβ , we can use some file or use stdin. TPM2 Tools Command : echo -n βsome_random_dataβ | tpm2_stirrandom Note : 128 bytes can only be injected using stdin at once through stirrandom() 3. ConclusionThe TPM2 provides in a sense True Random Numbers for use. These unpredictable numbers are coming from a dedicated hardware, hence can be trusted to be given as input to Crypto Algorithms amongst other applications. TPM2 also uses this for its internal use, and TCG claims it to be as secure as the strongest algorithm that TPM supports. Also, using the RNG is pretty straight forward via TPM2 Tools. #Tutorials



Comments
Start the Conversation
Hi Paul,
Thank you for creating this neat little device :-)
Received my T2Go just before the weekend β¦more
I did not, but now I did and it works! Clearly I missed the step to have my coffee first! Thanks for the (very) quick response :D
Is sudo required specifically for β¦more
You will find the example here:
https://github.com/tpm2-software/tpm2-tss/blob/master/doc/tcti-spi-ltt2go.md#examples
To the other tcti devices: propably they run in the userspace by default ?
Created a new Ubuntu ARM64 VM on my MacBook, passing USB to it, and works without sudo with the udev rules :-)
Congrats on this success Paul Kissinger and kudos to Herman Slatman for being one of the first to use production-version of the TPM2Go :)
Herman Slatman what VM did you use for USB passthrough?
Dimitar Tomov I've been using go-tpm and go-attestation on Windows to integrate the ACME device-attest-01 challenge in the Smallstep platform: https://datatracker.ietf.org/doc/draft-acme-device-attest/. Using those libraries allowed us to support both Linux and Windows relatively easily.
We created our own wrapping libraries at https://github.com/smallstep/crypto/tree/master/tpm to ease the use on both platforms, with different kinds of TPM simulator options, to provide a means for storing TPM objects, and to provide useful utilities. Currently it depends on some unmerged work, intended to be merged over time: https://github.com/google/go-attestation/pull/317.
It's not great that the operations need to be performed as administrator, but it's workable. Application and attestation keys created using go-tpm end up in the expected directories in Windows.
I started working on getting LTT2Go to work with go-tpm, but it's quite a bit of work to get the go-tpm->SPI->USB working properly in pure Go. My current approach is to reimplement the C code, but it's all quite a bit lower level than I'm used to. If anyone knows about some existing resources related to this, let me know :-)