aboutsummaryrefslogtreecommitdiff
path: root/SessionProcess_fp.h
blob: ca1487f422157c98d11af064dba8236cfdc5797c (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
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * 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_SESSIONPROCESS_FP_H
#define __TPM2_SESSIONPROCESS_FP_H

void BuildResponseSession(
    TPM_ST tag,             //    IN: tag
    TPM_CC commandCode,     //    IN: commandCode
    UINT32 resHandleSize,   //    IN: size of response handle buffer
    UINT32 resParmSize,     //    IN: size of response parameter buffer
    UINT32 *resSessionSize  //    OUT: response session area
    );
TPM_RC CheckAuthNoSession(
    TPM_CC commandCode,     //   IN:   Command Code
    UINT32 handleNum,       //   IN:   number of handles in command
    TPM_HANDLE handles[],   //   IN:   array of handle
    BYTE *parmBufferStart,  //   IN:   start of parameter buffer
    UINT32 parmBufferSize   //   IN:   size of parameter buffer
    );
BOOL IsDAExempted(TPM_HANDLE handle  // IN: entity handle
                  );
TPM_RC ParseSessionBuffer(
    TPM_CC commandCode,        //   IN:   Command code
    UINT32 handleNum,          //   IN:   number of element in handle array
    TPM_HANDLE handles[],      //   IN:   array of handle
    BYTE *sessionBufferStart,  //   IN:   start of session buffer
    UINT32 sessionBufferSize,  //   IN:   size of session buffer
    BYTE *parmBufferStart,     //   IN:   start of parameter buffer
    UINT32 parmBufferSize      //   IN:   size of parameter buffer
    );

#endif  // __TPM2_SESSIONPROCESS_FP_H