Ejemplo n.º 1
0
 /// <summary>
 /// This command is used to cause conditional gating of a policy based on the
 /// contents of the TPMS_TIME_INFO structure.
 /// </summary>
 public TpmPolicyCounterTimer(byte[] operandB, ushort offset, Eo operation, string branchName = "")
     : base(branchName)
 {
     OperandB  = Globs.CopyData(operandB);
     Offset    = offset;
     Operation = operation;
 }
Ejemplo n.º 2
0
 public TpmPolicyNV(byte[] nvIndexName, byte[] operandB, ushort offset, Eo operation) : base("")
 {
     IndexName = Globs.CopyData(nvIndexName);
     OperandB  = Globs.CopyData(operandB);
     Offset    = offset;
     Operation = operation;
 }
Ejemplo n.º 3
0
 public TpmPolicyNV(TpmHandle authorizationHandle, byte[] nvAccessAuth,
                    TpmHandle nvIndex, byte[] indexName,
                    byte[] operandB, ushort offset, Eo operation,
                    string branchName = "", string nodeId = null)
     : base(branchName, nodeId)
 {
     AuthorizationHandle = authorizationHandle;
     NvAccessAuth        = Globs.CopyData(nvAccessAuth);
     NvIndex             = nvIndex;
     OperandB            = Globs.CopyData(operandB);
     Offset    = offset;
     Operation = operation;
     IndexName = Globs.CopyData(indexName);
 }
Ejemplo n.º 4
0
        internal static void elm_object_focused_clear(IntPtr handle)
        {
            if (elm_widget_is(handle))
            {
                efl_ui_widget_focused_object_clear(handle);
            }
            else
            {
                Evas.evas_object_focus_set(handle, false);
            }

            IntPtr win = elm_widget_top_get(handle);

            if (win != IntPtr.Zero && Eo.efl_class_name_get(Eo.efl_class_get(win)) == "Efl.Ui.Win")
            {
                Evas.evas_object_focus_set(win, true);
            }
        }
Ejemplo n.º 5
0
 public void PolicyNV(
     TpmHandle authHandle,
     TpmHandle nvIndex,
     TpmHandle policySession,
     byte[] operandB,
     ushort offset,
     Eo operation
 )
 {
     Tpm2PolicyNVRequest inS = new Tpm2PolicyNVRequest();
     inS.authHandle = authHandle;
     inS.nvIndex = nvIndex;
     inS.policySession = policySession;
     inS.operandB = operandB;
     inS.offset = offset;
     inS.operation = operation;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.PolicyNV, (TpmStructureBase) inS, typeof(Tpm2PolicyNVResponse), out outSBase, 3, 0);
 }
Ejemplo n.º 6
0
 public void PolicyCounterTimer(
     TpmHandle policySession,
     byte[] operandB,
     ushort offset,
     Eo operation
 )
 {
     Tpm2PolicyCounterTimerRequest inS = new Tpm2PolicyCounterTimerRequest();
     inS.policySession = policySession;
     inS.operandB = operandB;
     inS.offset = offset;
     inS.operation = operation;
     TpmStructureBase outSBase;
     DispatchMethod(TpmCc.PolicyCounterTimer, (TpmStructureBase) inS, typeof(Tpm2PolicyCounterTimerResponse), out outSBase, 1, 0);
 }
Ejemplo n.º 7
0
 public Tpm2PolicyCounterTimerRequest(Tpm2PolicyCounterTimerRequest the_Tpm2PolicyCounterTimerRequest)
 {
     if((Object) the_Tpm2PolicyCounterTimerRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     policySession = the_Tpm2PolicyCounterTimerRequest.policySession;
     operandB = the_Tpm2PolicyCounterTimerRequest.operandB;
     offset = the_Tpm2PolicyCounterTimerRequest.offset;
     operation = the_Tpm2PolicyCounterTimerRequest.operation;
 }
Ejemplo n.º 8
0
 ///<param name = "the_policySession">handle for the policy session being extended Auth Index: None</param>
 ///<param name = "the_operandB">the second operand</param>
 ///<param name = "the_offset">the offset in TPMS_TIME_INFO structure for the start of operand A</param>
 ///<param name = "the_operation">the comparison to make</param>
 public Tpm2PolicyCounterTimerRequest(
 TpmHandle the_policySession,
 byte[] the_operandB,
 ushort the_offset,
 Eo the_operation
 )
 {
     this.policySession = the_policySession;
     this.operandB = the_operandB;
     this.offset = the_offset;
     this.operation = the_operation;
 }
Ejemplo n.º 9
0
 public Tpm2PolicyNVRequest(Tpm2PolicyNVRequest the_Tpm2PolicyNVRequest)
 {
     if((Object) the_Tpm2PolicyNVRequest == null ) throw new ArgumentException(Globs.GetResourceString("parmError"));
     authHandle = the_Tpm2PolicyNVRequest.authHandle;
     nvIndex = the_Tpm2PolicyNVRequest.nvIndex;
     policySession = the_Tpm2PolicyNVRequest.policySession;
     operandB = the_Tpm2PolicyNVRequest.operandB;
     offset = the_Tpm2PolicyNVRequest.offset;
     operation = the_Tpm2PolicyNVRequest.operation;
 }
Ejemplo n.º 10
0
 ///<param name = "the_authHandle">handle indicating the source of the authorization value Auth Index: 1 Auth Role: USER</param>
 ///<param name = "the_nvIndex">the NV Index of the area to read Auth Index: None</param>
 ///<param name = "the_policySession">handle for the policy session being extended Auth Index: None</param>
 ///<param name = "the_operandB">the second operand</param>
 ///<param name = "the_offset">the offset in the NV Index for the start of operand A</param>
 ///<param name = "the_operation">the comparison to make</param>
 public Tpm2PolicyNVRequest(
 TpmHandle the_authHandle,
 TpmHandle the_nvIndex,
 TpmHandle the_policySession,
 byte[] the_operandB,
 ushort the_offset,
 Eo the_operation
 )
 {
     this.authHandle = the_authHandle;
     this.nvIndex = the_nvIndex;
     this.policySession = the_policySession;
     this.operandB = the_operandB;
     this.offset = the_offset;
     this.operation = the_operation;
 }
Ejemplo n.º 11
0
 public TpmPolicyNV(byte[] nvIndexName, byte[] operandB, ushort offset, Eo operation) : base("")
 {
     IndexName = Globs.CopyData(nvIndexName);
     OperandB = Globs.CopyData(operandB);
     Offset = offset;
     Operation = operation;
 }
Ejemplo n.º 12
0
 /// <summary>
 /// This command is used to cause conditional gating of a policy based on the contents of an NV Index.
 /// </summary>
 public TpmPolicyNV(
     TpmHandle authorizationHandle,
     byte[] nvAccessAuth,
     TpmHandle nvIndex,
     byte[] indexName,
     byte[] operandB,
     ushort offset,
     Eo operation,
     string branchName = "") : base(branchName)
 {
     AuthorizationHandle = authorizationHandle;
     NvAccessAuth = Globs.CopyData(nvAccessAuth);
     NvIndex = nvIndex;
     OperandB = Globs.CopyData(operandB);
     Offset = offset;
     Operation = operation;
     IndexName = Globs.CopyData(indexName);
 }
Ejemplo n.º 13
0
 /// <summary>
 /// This command is used to cause conditional gating of a policy based on the 
 /// contents of the TPMS_TIME_INFO structure.
 /// </summary>
 public TpmPolicyCounterTimer(byte[] operandB, ushort offset, Eo operation, string branchName = "")
     : base(branchName)
 {
     OperandB = Globs.CopyData(operandB);
     Offset = offset;
     Operation = operation;
 }
Ejemplo n.º 14
0
 public Tpm2PolicyCounterTimerRequest()
 {
     policySession = new TpmHandle();
     operandB = null;
     offset = 0;
     operation = new Eo();
 }
Ejemplo n.º 15
0
 public Tpm2PolicyNVRequest()
 {
     authHandle = new TpmHandle();
     nvIndex = new TpmHandle();
     policySession = new TpmHandle();
     operandB = null;
     offset = 0;
     operation = new Eo();
 }