aboutsummaryrefslogtreecommitdiff
path: root/Policy_spt_fp.h
blob: 8fd4944fd89b37add69f04be2952492445ee052d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright 2015 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __TPM2_POLICY_SPT_FP_H_
#define __TPM2_POLICY_SPT_FP_H_

void PolicyContextUpdate(
    TPM_CC commandCode,    //   IN:   command code
    TPM2B_NAME *name,      //   IN:   name of entity
    TPM2B_NONCE *ref,      //   IN:   the reference data
    TPM2B_DIGEST *cpHash,  //   IN:   the cpHash (optional)
    UINT64 policyTimeout,
    SESSION *session  // IN/OUT: policy session to be updated
    );
TPM_RC PolicyParameterChecks(SESSION *session, UINT64 authTimeout,
                             TPM2B_DIGEST *cpHashA, TPM2B_NONCE *nonce,
                             TPM_RC nonceParameterNumber,
                             TPM_RC cpHashParameterNumber,
                             TPM_RC expirationParameterNumber);

#endif  // __TPM2_POLICY_SPT_FP_H_