public EccPoint EcdhZGen( TpmHandle keyHandle, EccPoint inPoint ) { Tpm2EcdhZGenRequest inS = new Tpm2EcdhZGenRequest(); inS.keyHandle = keyHandle; inS.inPoint = inPoint; TpmStructureBase outSBase; DispatchMethod(TpmCc.EcdhZGen, (TpmStructureBase) inS, typeof(Tpm2EcdhZGenResponse), out outSBase, 1, 0); Tpm2EcdhZGenResponse outS = (Tpm2EcdhZGenResponse) outSBase; return outS.outPoint; }
public Tpm2EcdhZGenRequest(Tpm2EcdhZGenRequest the_Tpm2EcdhZGenRequest) { if((Object) the_Tpm2EcdhZGenRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError")); keyHandle = the_Tpm2EcdhZGenRequest.keyHandle; inPoint = the_Tpm2EcdhZGenRequest.inPoint; }