Inheritance: TpmStructureBase
Exemplo n.º 1
0
 public byte[] PolicySigned(
     TpmHandle authObject,
     TpmHandle policySession,
     byte[] nonceTPM,
     byte[] cpHashA,
     byte[] policyRef,
     int expiration,
     ISignatureUnion auth,
     [SuppressMessage("Microsoft.Design", "CA1021")]
     out TkAuth policyTicket
 )
 {
     Tpm2PolicySignedRequest inS = new Tpm2PolicySignedRequest();
     inS.authObject = authObject;
     inS.policySession = policySession;
     inS.nonceTPM = nonceTPM;
     inS.cpHashA = cpHashA;
     inS.policyRef = policyRef;
     inS.expiration = expiration;
     inS.auth = auth;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.PolicySigned, (TpmStructureBase) inS, typeof(Tpm2PolicySignedResponse), out outSBase, 2, 0);
     Tpm2PolicySignedResponse outS = (Tpm2PolicySignedResponse) outSBase;
     policyTicket = outS.policyTicket;
     return outS.timeout;
 }
Exemplo n.º 2
0
 public Tpm2PolicySignedRequest(Tpm2PolicySignedRequest the_Tpm2PolicySignedRequest)
 {
     if((Object) the_Tpm2PolicySignedRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     authObject = the_Tpm2PolicySignedRequest.authObject;
     policySession = the_Tpm2PolicySignedRequest.policySession;
     nonceTPM = the_Tpm2PolicySignedRequest.nonceTPM;
     cpHashA = the_Tpm2PolicySignedRequest.cpHashA;
     policyRef = the_Tpm2PolicySignedRequest.policyRef;
     expiration = the_Tpm2PolicySignedRequest.expiration;
 }