@Rairii hey, I saw your post about the chinese manufacturer and the tpm code. I just had an exam for a lecture that is about some of the things they did, like secure boolean i.e. how to protect agains side channel attacks and fault injections.
Do you mind sharing with me where you found the code, it would be very interesting to see code from the wild, especially from a tpm where you "should" never see production code, unless you work there.