A really good article on how TPMs work