Protocol with Counters Sample Clauses

Protocol with Counters. We present here a simple protocol that uses state in order to avoid replay attacks. This is a simplified version of a security protocol in automotive, where signals are sent between control units in a car: A → B : sign(Signal || Counter, KAB) When A sends a signal to B, it increases a counter and signs the signal with the current value, using the shared key KAB. Upon receiving the message, B compares the counter with its own local copy; if the received counter is greater than B’s local counter, then the message is accepted, otherwise it is ignored. Here follows the code for the main protocol, with omitted type signatures: let k = keygen sig prop let sender s = let c = next cnt () in assume (Signal s c); let t = Format.signal s c in let m = mac k t in send (append t m); None let receiver () = let msg = recv () in ( if length msg <> signal size + macsize then Some "Wrong.length" else let (t, m) = split msg signal size in match Format.signal split t with Some (s, c) if not (fresh cnt c) then Some "Counter.already.used" else if not (verify k t m) then Some "MAC.failed" else (∗ Signal accepted ∗) ( assert (Signal s c); xxx xxxxx s c !log p; log recv s c; update cnt c; None ) | None → Some "Bad.tag" ) Both principals sender and receiver share a session key k, which is generated once and for all in the protocol with an attached property sig prop, which specifies the security property, as we will see later. The sender encodes the signal into a tagged bytestring using the function Format.signal, produces its signature, and finally sends the assembled message. The receiver disassembles it, checking all the conditions that violate the property. Such conditions are signaled by the use of the option return type. The function next cnt increments and returns a counter kept by the sender, the function fresh cnt returns true if the counter has not been observed by the receiver, and update cnt updates the counter for the receiver to the newer version. Communication between the two parties is done using the send and recv functions, while the cryptographic component is handled by the MAC module.
AutoNDA by SimpleDocs

Related to Protocol with Counters

  • FREEDOM TO DEAL WITH THIRD PARTIES The Adviser shall be free to render services to others similar to those rendered under this Agreement or of a different nature except as such services may conflict with the services to be rendered or the duties to be assumed hereunder.

  • Trial Without Jury If the parties fail to resolve the dispute through mediation, or if neither party elects to initiate mediation, each party shall have the right to pursue any other remedies legally available to resolve the dispute, provided, however, that the parties expressly waive any right to a jury trial in any legal proceeding under this Section.

  • Service with Company During the Term, Employee agrees to perform such duties and responsibilities as are assigned to him from time to time by Company’s Chief Executive Officer (the “CEO”) and/or Board of Directors (the “Board”).

  • Bank May Consult With Counsel Bank shall be entitled to rely on, and may act upon the advice of professional advisers in relation to matters of law, regulation or market practice (which may be the professional advisers of Customer), and shall not be liable to Customer for any action reasonably taken or omitted pursuant to such advice; provided that Bank has selected and retained such professional advisers using reasonable care and acts reasonably in reliance on the advice.

  • Trustee Dealings with Company The Trustee, in its individual or any other capacity, may make loans to, accept deposits from, and perform services for the Company or its Affiliates, and may otherwise deal with the Company or its Affiliates, as if it were not the Trustee.

  • Contact with Third Parties In the event that Supplier receives a request from a third party (including an individual) to access any Personal Information in Supplier’s possession, Supplier will promptly forward a copy of such request to DXC and will cooperate with DXC in responding to any such request. Upon DXC’s request, Supplier will make Personal Information in its possession available to DXC or any Third Party designated in writing by DXC and will update Personal Information in Supplier’s possession in accordance with DXC's written instructions. If any government or competent authority requests Supplier to disclose or allow access to Personal Information, Supplier shall, unless legally prohibited, immediately notify DXC of such request and shall not disclose or allow access to such Personal Information without first giving DXC an opportunity to consult with the requesting government or authority to seek to prevent such disclosure or access. Supplier will respond to any such government or enforcement authority request only after consultation with DXC and at DXC’s discretion, unless otherwise required by law. Supplier shall promptly notify DXC if any complaints are received from Third Parties about its Processing of Personal Information, and Supplier shall not make any admissions or take any action that may be prejudicial to the defense or settlement of any such complaint. Supplier shall provide DXC with such reasonable assistance as it may require in connection with resolving any such complaint.

  • Compliance with Controlling Law Contractor shall comply with all applicable local, state, and federal laws, regulations, and policies. Contractor’s act or omission in violation of applicable local, state, and federal laws, regulations, and policies is grounds for contract

  • Consultation with Counsel The Executive acknowledges that he has had a full and complete opportunity to consult with counsel or other advisers of his own choosing concerning the terms, enforceability and implications of this Agreement, and that the Company has not made any representations or warranties to the Executive concerning the terms, enforceability and implications of this Agreement other than as are reflected in this Agreement.

  • Assistance with Claims Executive agrees that, for the period beginning on the Effective Date, and continuing for a reasonable period after Executive's termination date, Executive will assist the Company in defense of any claims that may be made against the Company, and will assist the Company in the prosecution of any claims that may be made by the Company, to the extent that such claims may relate to services performed by Executive for the Company. Executive agrees to promptly inform the Company if he becomes aware of any lawsuits involving such claims that may be filed against the Company. The Company agrees to provide legal counsel to Executive in connection with such assistance (to the extent legally permitted), and to reimburse Executive for all of Executive's reasonable out-of-pocket expenses associated with such assistance, including travel expenses. For periods after Executive's employment with the Company terminates, the Company agrees to provide reasonable compensation to Executive for such assistance. Executive also agrees to promptly inform the Company, if permitted by law, if he is asked to assist in any investigation of the Company (or its actions) that may relate to services performed by Executive for the Company, regardless of whether a lawsuit has then been filed against the Company with respect to such investigation. The Executive shall not be required to perform such cooperation to the extent it conflicts with any requirements of exclusivity of service for or other obligations to be performed on behalf of another employer or otherwise, nor in any manner that in the good faith belief of the Executive would conflict with his rights under or ability to enforce this Agreement.

  • Opportunity To Consult With Independent Advisors The Executive acknowledges that he or she has been afforded the opportunity to consult with independent advisors of his choosing including, without limitation, accountants or tax advisors and counsel regarding both the benefits granted to him under the terms of this Agreement and the (i) terms and conditions which may affect the Executive's right to these benefits and (ii) personal tax effects of such benefits including, without limitation, the effects of any federal or state taxes, Section 280G of the Code, and any other taxes, costs, expenses or liabilities whatsoever related to such benefits, which in any of the foregoing instances the Executive acknowledges and agrees shall be the sole responsibility of the Executive notwithstanding any other term or provision of this Agreement. The Executive further acknowledges and agrees that the Bank shall have no liability whatsoever related to any such personal tax effects or other personal costs, expenses, or liabilities applicable to the Executive and further specifically waives any right for himself or herself, and his or her heirs, beneficiaries, legal representatives, agents, successor and assign to claim or assert liability on the part of the Bank related to the matters described above in this Section 9.13. The Executive further acknowledges that he or she has read, understands and consents to all of the terms and conditions of this Agreement, and that he or she enters into this Agreement with a full understanding of its terms and conditions.

Draft better contracts in just 5 minutes Get the weekly Law Insider newsletter packed with expert videos, webinars, ebooks, and more!