From: "MaxF (Code Review)" Date: Fri, 29 Nov 2024 14:05:53 +0000 In-Reply-To: References: Reply-To: max@...2606..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: <359453f81cc339baf4cd71b5d5df0aee3a5ee1e3-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="5aluGiHa1XU="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Trigger renegotiation of data key if getting close to the AEAD usage ... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , cron2 , openvpn-devel --5aluGiHa1XU= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, flichtenheld, plaisthos. MaxF has posted comments on this change. ( http://gerrit.openvpn.net/c/open= vpn/+/796?usp=3Demail ) Change subject: Trigger renegotiation of data key if getting close to the A= EAD usage limit ...................................................................... Patch Set 7: Code-Review-1 (3 comments) Patchset: PS7: The limit matches the one in the RFC for p =3D 2^57. I have some nitpicks about comments. And one question: The RFC also specifies a limit for message integrity. If = v is the number of failed decryptions for the current key and L is the maxi= mum number of blocks per message, we must make sure that v <=3D min(2^64, (= p * 2^127) / (L + 1)). Are we going to check that too? File src/openvpn/crypto.h: http://gerrit.openvpn.net/c/openvpn/+/796/comment/cb71ff95_59bc6586 : PS7, Line 169: /** Counter for the number of plaintext encrypted using = this cipher : * in number of 128 bit blocks (only used for AEAD ciphe= rs) */ This looks a bit garbled. Maybe "Counter for the number of 128-bit plaintex= t blocks encrypted with the current key"? File src/openvpn/crypto.c: http://gerrit.openvpn.net/c/openvpn/+/796/comment/ab160cf8_a5e88f45 : PS7, Line 347: q <=3D (p^(1/2) * 2^(129/2) - 1) / (L + 1) We're not doing anything with this inequality. This one is for the case whe= re we don't count the individual blocks but just have an upper bound of L o= n the number of blocks per message. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/796?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I057f007577f10c6ac917ee4620ee3d2559187dc7 Gerrit-Change-Number: 796 Gerrit-PatchSet: 7 Gerrit-Owner: plaisthos Gerrit-Reviewer: MaxF Gerrit-Reviewer: flichtenheld Gerrit-CC: cron2 Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Fri, 29 Nov 2024 14:05:53 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --5aluGiHa1XU= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, flichtenheld, plaisthos. <= /p>

Patch set 7:Code-Review -1=

Vi= ew Change

3 comments:

  • Patchset:

    • Patch Set #7:

      The limit matches the one in the RFC for p = =3D 2^57.

      I h= ave some nitpicks about comments.

      And one question: The RFC also specifies a limit for m= essage integrity. If v is the number of failed decryptions for the current = key and L is the maximum number of blocks per message, we must make sure th= at v <=3D min(2^64, (p * 2^127) / (L + 1)). Are we going to check that t= oo?

  • File src/open= vpn/crypto.h:

    • Patch= Set #7, Line 169:

          /** Counter for the number of plain=
      text encrypted using this cipher
      * in number of 128 bit blocks (onl= y used for AEAD ciphers) */

      This looks a bit garbled. Maybe "= ;Counter for the number of 128-bit plaintext blocks encrypted with the curr= ent key"?

  • Fi= le src/openvpn/crypto.c:

      Patch Set #7, Line 347: q <=3D (p^(1/2) * 2^(129/2) - 1) / (L + 1)

      We're not doing anything= with this inequality. This one is for the case where we don't count th= e individual blocks but just have an upper bound of L on the number of bloc= ks per message.

To view, visit change 796. To unsubscr= ibe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I057f007577f10c6ac917ee4620e= e3d2559187dc7
Gerrit-Change-Number: 796
Gerrit-PatchSet: 7
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: MaxF <max@...2606...> <= /div>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: cron2 <gert@...1296...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: cron2 <gert@...1296...>= ;
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Fri, 29 Nov 2024 14:05:53= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--5aluGiHa1XU=--