Inheritance: TpmStructureBase
コード例 #1
0
ファイル: X_TpmDefs.cs プロジェクト: vishalishere/TSS.MSR
 public uint PcrRead(
     PcrSelection[] pcrSelectionIn,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out PcrSelection[] pcrSelectionOut,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out Tpm2bDigest[] pcrValues
 )
 {
     Tpm2PcrReadRequest inS = new Tpm2PcrReadRequest();
     inS.pcrSelectionIn = pcrSelectionIn;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.PcrRead, (TpmStructureBase) inS, typeof(Tpm2PcrReadResponse), out outSBase, 0, 0);
     Tpm2PcrReadResponse outS = (Tpm2PcrReadResponse) outSBase;
     pcrSelectionOut = outS.pcrSelectionOut;
     pcrValues = outS.pcrValues;
     return outS.pcrUpdateCounter;
 }
コード例 #2
0
ファイル: X_TpmDefs.cs プロジェクト: vishalishere/TSS.MSR
 public Tpm2PcrReadRequest(Tpm2PcrReadRequest the_Tpm2PcrReadRequest)
 {
     if((Object) the_Tpm2PcrReadRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     pcrSelectionIn = the_Tpm2PcrReadRequest.pcrSelectionIn;
 }