Inheritance: TpmStructureBase
示例#1
0
 public EccPoint EcdhKeyGen(
     TpmHandle keyHandle,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out EccPoint pubPoint
 )
 {
     Tpm2EcdhKeyGenRequest inS = new Tpm2EcdhKeyGenRequest();
     inS.keyHandle = keyHandle;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.EcdhKeyGen, (TpmStructureBase) inS, typeof(Tpm2EcdhKeyGenResponse), out outSBase, 1, 0);
     Tpm2EcdhKeyGenResponse outS = (Tpm2EcdhKeyGenResponse) outSBase;
     pubPoint = outS.pubPoint;
     return outS.zPoint;
 }
示例#2
0
 public Tpm2EcdhKeyGenRequest(Tpm2EcdhKeyGenRequest the_Tpm2EcdhKeyGenRequest)
 {
     if((Object) the_Tpm2EcdhKeyGenRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     keyHandle = the_Tpm2EcdhKeyGenRequest.keyHandle;
 }