Vadim Bendebury | 4be4cee | 2015-06-01 12:30:16 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 The Chromium OS Authors. All rights reserved. |
| 3 | * Use of this source code is governed by a BSD-style license that can be |
| 4 | * found in the LICENSE file. |
| 5 | */ |
| 6 | |
| 7 | #ifndef __TPM2_POLICY_SPT_FP_H_ |
| 8 | #define __TPM2_POLICY_SPT_FP_H_ |
| 9 | |
Vadim Bendebury | 5b7832d | 2015-06-01 13:19:03 -0700 | [diff] [blame] | 10 | void PolicyContextUpdate( |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 11 | TPM_CC commandCode, // IN: command code |
| 12 | TPM2B_NAME *name, // IN: name of entity |
| 13 | TPM2B_NONCE *ref, // IN: the reference data |
| 14 | TPM2B_DIGEST *cpHash, // IN: the cpHash (optional) |
| 15 | UINT64 policyTimeout, |
| 16 | SESSION *session // IN/OUT: policy session to be updated |
| 17 | ); |
| 18 | TPM_RC PolicyParameterChecks(SESSION *session, UINT64 authTimeout, |
| 19 | TPM2B_DIGEST *cpHashA, TPM2B_NONCE *nonce, |
| 20 | TPM_RC nonceParameterNumber, |
| 21 | TPM_RC cpHashParameterNumber, |
| 22 | TPM_RC expirationParameterNumber); |
Vadim Bendebury | 4be4cee | 2015-06-01 12:30:16 -0700 | [diff] [blame] | 23 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 24 | #endif // __TPM2_POLICY_SPT_FP_H_ |