Home | History | Annotate | Download | only in tpm2
      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_SESSIONPROCESS_FP_H
      8 #define __TPM2_SESSIONPROCESS_FP_H
      9 
     10 void BuildResponseSession(
     11     TPM_ST tag,             //    IN: tag
     12     TPM_CC commandCode,     //    IN: commandCode
     13     UINT32 resHandleSize,   //    IN: size of response handle buffer
     14     UINT32 resParmSize,     //    IN: size of response parameter buffer
     15     UINT32 *resSessionSize  //    OUT: response session area
     16     );
     17 TPM_RC CheckAuthNoSession(
     18     TPM_CC commandCode,     //   IN:   Command Code
     19     UINT32 handleNum,       //   IN:   number of handles in command
     20     TPM_HANDLE handles[],   //   IN:   array of handle
     21     BYTE *parmBufferStart,  //   IN:   start of parameter buffer
     22     UINT32 parmBufferSize   //   IN:   size of parameter buffer
     23     );
     24 BOOL IsDAExempted(TPM_HANDLE handle  // IN: entity handle
     25                   );
     26 TPM_RC ParseSessionBuffer(
     27     TPM_CC commandCode,        //   IN:   Command code
     28     UINT32 handleNum,          //   IN:   number of element in handle array
     29     TPM_HANDLE handles[],      //   IN:   array of handle
     30     BYTE *sessionBufferStart,  //   IN:   start of session buffer
     31     UINT32 sessionBufferSize,  //   IN:   size of session buffer
     32     BYTE *parmBufferStart,     //   IN:   start of parameter buffer
     33     UINT32 parmBufferSize      //   IN:   size of parameter buffer
     34     );
     35 
     36 #endif  // __TPM2_SESSIONPROCESS_FP_H
     37