A lightweight library for communicating with a Trusted Platform Module (TPM)