Home | History | Annotate | Download | only in tpm2
      1 // This file was extracted from the TCG Published
      2 // Trusted Platform Module Library
      3 // Part 3: Commands
      4 // Family "2.0"
      5 // Level 00 Revision 01.16
      6 // October 30, 2014
      7 
      8 #include "InternalRoutines.h"
      9 #include "PolicyGetDigest_fp.h"
     10 TPM_RC
     11 TPM2_PolicyGetDigest(
     12    PolicyGetDigest_In        *in,             // IN: input parameter list
     13    PolicyGetDigest_Out       *out             // OUT: output parameter list
     14    )
     15 {
     16    SESSION      *session;
     17 
     18 // Command Output
     19 
     20    // Get pointer to the session structure
     21    session = SessionGet(in->policySession);
     22 
     23    out->policyDigest = session->u2.policyDigest;
     24 
     25    return TPM_RC_SUCCESS;
     26 }
     27