public NvPublic NvReadPublic( TpmHandle nvIndex, [SuppressMessage("Microsoft.Design", "CA1021")] out byte[] nvName ) { Tpm2NvReadPublicRequest inS = new Tpm2NvReadPublicRequest(); inS.nvIndex = nvIndex; TpmStructureBase outSBase; DispatchMethod(TpmCc.NvReadPublic, (TpmStructureBase) inS, typeof(Tpm2NvReadPublicResponse), out outSBase, 1, 0); Tpm2NvReadPublicResponse outS = (Tpm2NvReadPublicResponse) outSBase; nvName = outS.nvName; return outS.nvPublic; }
public Tpm2NvReadPublicRequest(Tpm2NvReadPublicRequest the_Tpm2NvReadPublicRequest) { if((Object) the_Tpm2NvReadPublicRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError")); nvIndex = the_Tpm2NvReadPublicRequest.nvIndex; }