Add support for TPM_MakeIdentity.

This commit adds support for the TPM_MakeIdentity command: this lets the caller
create a new 2048-bit 2-prime RSA key in the TPM. It returns a blob that can be
used to load an AIK into the TPM. This does not yet add support for activating
the identity in the TPM.
Fix TPM_MakeIdentity to use ownerAuth for ADIP.

This commit fixes a bug in which the MakeIdentity call was using the wrong auth
value for encrypting a new AIK auth value.
Add TPM_ResetLockValue.

This commit adds support for TPM_ResetLockValue, which resets the value used to
defend against dictionary attacks for auth values. Note that this requres owner
auth.
Add more test coverage for the PCR-handling code.
Remove dependency on golang/glog and add cleanup.

This commit removes the V(2) messages from glog and removes the dependency on
this library. It also does a better job of cleaning up AIK values that are
loaded into the TPM using LoadKey2.
Add support for reading the EK and SRK as Owner.

This adds functions that allow a caller with owner auth to read the endorsement
key and the SRK, using TPM_OwnerReadInternalPub. It also fixes a couple of
golint errors and adds some simple tests for these new operations.
Rename a file to match standard conventions.
Add support for taking ownership.

This commit adds support for TPM_TakeOwnership. This command only works when the
platform owner has asserted physical presence, so the test for this case is
skipped in general. The TestOwnerClear test case is also skipped, since it
forces the TPM into a state that can only be recovered by asserting physical
presence.
Add simple examples for go-tpm.

This adds examples that create a new AIK, clear the TPM (using owner auth), and
take ownership of the TPM with new owner auth and SRK auth.
Replace flags with environment variables.

This replaces the auth flags in the examples with environment variables.
Update tests to use general auth values.

This commit adds support to the tpm test code for general auth values computed
as the SHA1 hash of a string or as the well-known auth value. It also fixes the
Quote and Quote2 tests to use the AIK auth value for quotes rather than the SRK
value. This wasn't caught in previous testing because the SRK and AIK auth
values were previously both the well-known secret of all zeroes.