pub fn with_tpm<R, F: FnOnce(&Tpm) -> R>(f: F) -> Option<R>
Execute a closure with a reference to the global TPM instance.
Returns None if the TPM is not initialized.
None