public TkCreation(TkCreation the_TkCreation) { if((Object) the_TkCreation == null ) throw new ArgumentException(Globs.GetResourceString("parmError")); hierarchy = the_TkCreation.hierarchy; digest = the_TkCreation.digest; }
///<param name = "the_objectHandle">handle of type TPM_HT_TRANSIENT for created Primary Object</param> ///<param name = "the_outPublic">the public portion of the created object</param> ///<param name = "the_creationData">contains a TPMT_CREATION_DATA</param> ///<param name = "the_creationHash">digest of creationData using nameAlg of outPublic</param> ///<param name = "the_creationTicket">ticket used by TPM2_CertifyCreation() to validate that the creation data was produced by the TPM</param> ///<param name = "the_name">the name of the created object</param> public Tpm2CreatePrimaryResponse( TpmHandle the_objectHandle, TpmPublic the_outPublic, CreationData the_creationData, byte[] the_creationHash, TkCreation the_creationTicket, byte[] the_name ) { this.objectHandle = the_objectHandle; this.outPublic = the_outPublic; this.creationData = the_creationData; this.creationHash = the_creationHash; this.creationTicket = the_creationTicket; this.name = the_name; }
public Attest CertifyCreation( TpmHandle signHandle, TpmHandle objectHandle, byte[] qualifyingData, byte[] creationHash, ISigSchemeUnion inScheme, TkCreation creationTicket, [SuppressMessage("Microsoft.Design", "CA1021")] out ISignatureUnion signature ) { Tpm2CertifyCreationRequest inS = new Tpm2CertifyCreationRequest(); inS.signHandle = signHandle; inS.objectHandle = objectHandle; inS.qualifyingData = qualifyingData; inS.creationHash = creationHash; inS.inScheme = inScheme; inS.creationTicket = creationTicket; TpmStructureBase outSBase; DispatchMethod(TpmCc.CertifyCreation, (TpmStructureBase) inS, typeof(Tpm2CertifyCreationResponse), out outSBase, 2, 0); Tpm2CertifyCreationResponse outS = (Tpm2CertifyCreationResponse) outSBase; signature = outS.signature; return outS.certifyInfo; }
public Tpm2CreatePrimaryResponse() { objectHandle = new TpmHandle(); outPublic = new TpmPublic(); creationData = new CreationData(); creationHash = new byte[0]; creationTicket = new TkCreation(); name = new byte[0]; }
public Tpm2CreatePrimaryResponse(Tpm2CreatePrimaryResponse the_Tpm2CreatePrimaryResponse) { if((Object) the_Tpm2CreatePrimaryResponse == null ) throw new ArgumentException(Globs.GetResourceString("parmError")); objectHandle = the_Tpm2CreatePrimaryResponse.objectHandle; outPublic = the_Tpm2CreatePrimaryResponse.outPublic; creationData = the_Tpm2CreatePrimaryResponse.creationData; creationHash = the_Tpm2CreatePrimaryResponse.creationHash; creationTicket = the_Tpm2CreatePrimaryResponse.creationTicket; name = the_Tpm2CreatePrimaryResponse.name; }
///<param name = "the_signHandle">handle of the key that will sign the attestation block Auth Index: 1 Auth Role: USER</param> ///<param name = "the_objectHandle">the object associated with the creation data Auth Index: None</param> ///<param name = "the_qualifyingData">user-provided qualifying data</param> ///<param name = "the_creationHash">hash of the creation data produced by TPM2_Create() or TPM2_CreatePrimary()</param> ///<param name = "the_inScheme">signing scheme to use if the scheme for signHandle is TPM_ALG_NULL(One of SigSchemeRsassa, SigSchemeRsapss, SigSchemeEcdsa, SigSchemeEcdaa, SigSchemeSm2, SigSchemeEcschnorr, SchemeHmac, SchemeHash, NullSigScheme)</param> ///<param name = "the_creationTicket">ticket produced by TPM2_Create() or TPM2_CreatePrimary()</param> public Tpm2CertifyCreationRequest( TpmHandle the_signHandle, TpmHandle the_objectHandle, byte[] the_qualifyingData, byte[] the_creationHash, ISigSchemeUnion the_inScheme, TkCreation the_creationTicket ) { this.signHandle = the_signHandle; this.objectHandle = the_objectHandle; this.qualifyingData = the_qualifyingData; this.creationHash = the_creationHash; this.inScheme = the_inScheme; this.creationTicket = the_creationTicket; }
public Tpm2CertifyCreationRequest(Tpm2CertifyCreationRequest the_Tpm2CertifyCreationRequest) { if((Object) the_Tpm2CertifyCreationRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError")); signHandle = the_Tpm2CertifyCreationRequest.signHandle; objectHandle = the_Tpm2CertifyCreationRequest.objectHandle; qualifyingData = the_Tpm2CertifyCreationRequest.qualifyingData; creationHash = the_Tpm2CertifyCreationRequest.creationHash; creationTicket = the_Tpm2CertifyCreationRequest.creationTicket; }
public Tpm2CertifyCreationRequest() { signHandle = new TpmHandle(); objectHandle = new TpmHandle(); qualifyingData = new byte[0]; creationHash = new byte[0]; creationTicket = new TkCreation(); }
///<param name = "the_outPrivate">the private portion of the object</param> ///<param name = "the_outPublic">the public portion of the created object</param> ///<param name = "the_creationData">contains a TPMS_CREATION_DATA</param> ///<param name = "the_creationHash">digest of creationData using nameAlg of outPublic</param> ///<param name = "the_creationTicket">ticket used by TPM2_CertifyCreation() to validate that the creation data was produced by the TPM</param> public Tpm2CreateResponse( TpmPrivate the_outPrivate, TpmPublic the_outPublic, CreationData the_creationData, byte[] the_creationHash, TkCreation the_creationTicket ) { this.outPrivate = the_outPrivate; this.outPublic = the_outPublic; this.creationData = the_creationData; this.creationHash = the_creationHash; this.creationTicket = the_creationTicket; }
public Tpm2CreateResponse() { outPrivate = new TpmPrivate(); outPublic = new TpmPublic(); creationData = new CreationData(); creationHash = new byte[0]; creationTicket = new TkCreation(); }