One year ago
... TPM.dev was created.
I was doing my own remote attestation solution and I was looking for a place to talk with others who are also interested in system integrity and platform security.
12 months later
we had 32 online weekly calls
we made 20 videos and tutorials
we are over 100 members
Today we will make our weekly call #33. William Roberts , Stefano Alberico and Kevin G. Zhang will share with us insight and details about their projects.
What was at the beginning?
On 2nd of December 2019 this forum-like platform was launched. We started with one call per month in December, but quickly moved to the weekly format we use today. We had just about five weekly calls, when we made our first event in-person in Zurich. This was in February, next one was planned for March in Berlin, but it did not happen, because covid hit.
During the very first calls, it was just few people Ian Oliver , Paul Kissinger (LetsTrust), David Garske (wolfTPM), Daniel Smith (OpenXT) and me. There is still an article with summary of our call #3 and this is the screenshot taken then:

Slowly, but steadily we started growing with 2 members per week, every week. Our weekly calls started regularly gathering 6 to10 people. Topics varied from hardware security to runtime integrity. Plus, we started discussing anything interesting that happened during the week. Truly open format of our calls.
Also, people started to change from call to call. I think our record was about 15 participants in a call, with people coming and going during the call. Sometimes we had so many interesting topics, we did two hour calls spontaneously.
Here is how call #32 looked like in one moment
Thank you for taking a chance to join in yet another online call in 2020.
Thank you for openly talking and sharing your opinions about security.
I almost forgot, we also had a very successful mini-conference. All of the videos and content can be found in the Tutorials section, on the left side, from the Topics menu.
The TPM.dev 2020 MiniConference
Statistics for the curious
Registrations - 83
Turnout - 77
Average Time spent per participant - 272.07 Minutes
For just one month me and Ian Oliver put together this MiniConf. We announced it only two weeks before the actual date and the turnout was amazing. The talks, so valuable and detailed. One of the comments in the chat shared my feeling:
S.Alberico: "yeah .... it's very rare to have such high quality on this matter. great job for organizing it !"
I hope that our community will continue to welcome newcomers. And we will openly discuss all ideas and assumptions about hardware based security :)
Welcome to our newest members Kasper Kyllönen and Sridevi Mutnuri
Today is our weekly call, looking forward to seeing you there. Zoom invite link is in the "Events" menu on the right.
Thank you,
Dimi
👍
4❤️
👍
💡
👏
😂
Explore More Posts
Sneak-peak at our #TPMDEV2026 Conference. One slide from each main talk. Expect the recordings soon as we are migrating to Youtube. The news from today is that we are resuming our monthly calls and we will have in-person #TPMDEV2027! Check TPM.dev for more info.
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
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



Comments
Start the Conversation
We all looked so young back then :-)
I think the reflection in the window is of Putty: ssh to my Pi because we were discussing generating keys on the TPM.