tpm2_lite: implement TlclExtend

Implement TlclExtend, which sends a TPM2_PCR_Extend command to extend
the indicated PCR.

BUG=b:174807059
BRANCH=none
TEST=After stopped trunksd run "tpmc pcrextend <index> <extend hex>" to
     extend the PCR. Start trunksd and run "trunks_client --read_pcr
     --index=<index>" would see the PCR value changed.

Disallow-Recycled-Builds: test-failures
Signed-off-by: Yi Chou <yich@google.com>
Change-Id: I5b11fcf7de83186a29e1abed43f443ac9ca426fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2632019
Reviewed-by: Leo Lai <cylai@google.com>
3 files changed