blob: 8fd4944fd89b37add69f04be2952492445ee052d [file] [log] [blame]
Vadim Bendebury4be4cee2015-06-01 12:30:16 -07001/*
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 Bendebury5b7832d2015-06-01 13:19:03 -070010void PolicyContextUpdate(
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070011 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 );
18TPM_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 Bendebury4be4cee2015-06-01 12:30:16 -070023
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070024#endif // __TPM2_POLICY_SPT_FP_H_