Inheritance: TpmStructureBase
示例#1
0
 public byte PcrAllocate(
     TpmHandle authHandle,
     PcrSelection[] pcrAllocation,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out uint maxPCR,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out uint sizeNeeded,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out uint sizeAvailable
 )
 {
     Tpm2PcrAllocateRequest inS = new Tpm2PcrAllocateRequest();
     inS.authHandle = authHandle;
     inS.pcrAllocation = pcrAllocation;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.PcrAllocate, (TpmStructureBase) inS, typeof(Tpm2PcrAllocateResponse), out outSBase, 1, 0);
     Tpm2PcrAllocateResponse outS = (Tpm2PcrAllocateResponse) outSBase;
     maxPCR = outS.maxPCR;
     sizeNeeded = outS.sizeNeeded;
     sizeAvailable = outS.sizeAvailable;
     return outS.allocationSuccess;
 }
示例#2
0
 public Tpm2PcrAllocateRequest(Tpm2PcrAllocateRequest the_Tpm2PcrAllocateRequest)
 {
     if((Object) the_Tpm2PcrAllocateRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     authHandle = the_Tpm2PcrAllocateRequest.authHandle;
     pcrAllocation = the_Tpm2PcrAllocateRequest.pcrAllocation;
 }