Inheritance: TpmStructureBase
Esempio n. 1
0
 public byte[] NvRead(
     TpmHandle authHandle,
     TpmHandle nvIndex,
     ushort size,
     ushort offset
 )
 {
     Tpm2NvReadRequest inS = new Tpm2NvReadRequest();
     inS.authHandle = authHandle;
     inS.nvIndex = nvIndex;
     inS.size = size;
     inS.offset = offset;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.NvRead, (TpmStructureBase) inS, typeof(Tpm2NvReadResponse), out outSBase, 2, 0);
     Tpm2NvReadResponse outS = (Tpm2NvReadResponse) outSBase;
     return outS.data;
 }
Esempio n. 2
0
 public Tpm2NvReadRequest(Tpm2NvReadRequest the_Tpm2NvReadRequest)
 {
     if((Object) the_Tpm2NvReadRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     authHandle = the_Tpm2NvReadRequest.authHandle;
     nvIndex = the_Tpm2NvReadRequest.nvIndex;
     size = the_Tpm2NvReadRequest.size;
     offset = the_Tpm2NvReadRequest.offset;
 }