Welcome!
We are happy to welcome one more person who wants better computer security.
We think you're going to get something special from being a part of TPM.dev – from other members AND most importantly from sharing your challenges and ideas.

Here are a few things to know about both the platform we're using as well as the community that we're building here together.
Your Notifications, Home space & Mobile App
You control what notifications you get from TPM.dev. Go here to update your settings. Be aware the default notifications are designed to bring you back early and often, so make sure you're getting the ones you want:

By default, Home will show you the latest activity from members.
Download the mobile app. Make it easy to stay in touch. You'll need to sign in a second time after you download it, but it’s well worth it.
That's it! With those 3 simple things, you can start exploring TPM.dev
Your Contributions Make TPM.dev Special
You may want to start by sitting back a bit and explore our tutorials, videos and discussions. Here's a bit about the community we're building at TPM.dev:
Everyone can post, create polls and questions, write down ideas, join events, and direct message each other. Don't be shy about any of these things. That's why we're here.
When you add a mini-bio or quick introduction to Your Profile page, we can properly welcome you, and you'll get a ton more value than if you're a nameless, faceless member.
We're quick to support each other. You'll find out pretty fast that we're here to lift each other up. Computer security has been complicated long enough. We're doing something different at TPM.dev
We share generously. While you may feel a bit hesitant to share initially, we'd love to ask you to power through that hesitation, and share generously. The more you contribute, the more you'll get out of TPM.dev
We are constructive. We're here to push each other forward. Every member who has joined a TPM.dev online weekly call has found useful and curious information.
We don't spam or troll.
These were easy agreements for us to make and, hopefully, will be for you, too. It's a community, and can't wait for you to see that for yourself.
Let's Dive In
Make your first post. It might be a short post about your experience with hardware security or a question you have. It is okay if you are just starting :)
Ready? We can't wait to meet you!
#MeetupsAnnouncements👍
1❤️
👍
💡
👏
😂
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