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;
}
/// <summary>