diff options
author | Frans Hendriks <fhendriks@eltan.com> | 2019-06-26 10:43:40 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2019-07-19 09:56:56 +0000 |
commit | 589eff7e476f452773bb3cc2ca1469446e2097f4 (patch) | |
tree | 7b948ca7e244f840b3553bde2f8814820ede765f /src/security/tpm/tss.h | |
parent | 73c405ae309719315f75d6b51895e8066287c369 (diff) | |
download | coreboot-589eff7e476f452773bb3cc2ca1469446e2097f4.tar.xz |
security/tpm/tss/tcg-2.0: Add TPM2 function tlcl_getcapability()
Add function tlcl_getcapability() to return TPM2 capability.
To support TPM2 capability TPM_CAP_PCRS handling is added to
unmarshal_get_capability().
BUG=N/A
TEST=Build binary and verified logging on Facebook FBG-1701
Change-Id: I85e1bd2822aa6e7fd95ff2b9faa25cf183e6de37
Signed-off-by: Frans Hendriks <fhendriks@eltan.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/30826
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/security/tpm/tss.h')
-rw-r--r-- | src/security/tpm/tss.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/security/tpm/tss.h b/src/security/tpm/tss.h index 548a39a774..30e2a7b4b8 100644 --- a/src/security/tpm/tss.h +++ b/src/security/tpm/tss.h @@ -1,4 +1,5 @@ /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. + * Copyright (C) 2018-2019 Eltan B.V. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -66,6 +67,13 @@ uint32_t tlcl_define_space(uint32_t space_index, size_t space_size, const uint8_t *nv_policy, size_t nv_policy_size); /* + * Issue TPM2_GetCapability command + */ +uint32_t tlcl_get_capability(TPM_CAP capability, uint32_t property, + uint32_t property_count, + TPMS_CAPABILITY_DATA *capability_data); + +/* * Makes tpm_process_command available for on top implementations of * custom tpm standards like cr50 */ |