From: "ordex (Code Review)" Date: Fri, 15 Nov 2024 09:29:16 +0000 In-Reply-To: References: Reply-To: a@...2181..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="kOfcJW19Uo4="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Use XOR instead of concatenation for calculation of IV from implicit IV List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: cron2 , flichtenheld , openvpn-devel --kOfcJW19Uo4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, flichtenheld, plaisthos. ordex has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/797?usp=3Demail ) Change subject: Use XOR instead of concatenation for calculation of IV fro= m implicit IV ...................................................................... Patch Set 3: (2 comments) File src/openvpn/crypto.c: http://gerrit.openvpn.net/c/openvpn/+/797/comment/aa9a760a_7b292150 : PS3, Line 435: const size_t packet_iv_len =3D packet_id_size(false); nit: since you are keeping this declaration here, I think it is more descri= ptive to use packet_iv_len in the following if block File src/openvpn/ssl.c: http://gerrit.openvpn.net/c/openvpn/+/797/comment/4af76cce_141b7572 : PS3, Line 1566: /* The first bytes of the IV are filled with the pa= cket id */ is the extension to 96 bits implicit IV coming with a future patch? (i.e. D= ATA_V3 patchset?) Because elsewhere you described the implicit IV growing to 96 bits, but her= e it seems we are only accounting for the old format (with leading zeros) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/797?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: I74216d776d3e0a8dc987ec7b1671c8e8dcccdbd6 Gerrit-Change-Number: 797 Gerrit-PatchSet: 3 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: cron2 Gerrit-CC: openvpn-devel Gerrit-CC: ordex Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Fri, 15 Nov 2024 09:29:16 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment --kOfcJW19Uo4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View C= hange

2 comments:

    =
  • File src/openvpn/crypto.c:

    • Patch Set #3, Line 435:= const size_t packe= t_iv_len =3D packet_id_size(false);

      nit: since you are keeping this declaration h= ere, I think it is more descriptive to use packet_iv_len in the following i= f block

  • File src/= openvpn/ssl.c:

    • Pa= tch Set #3, Line 1566: = /* The first bytes of the IV are filled with the packet id */

      is the exte= nsion to 96 bits implicit IV coming with a future patch? (i.e. DATA_V3 patc= hset?)
      Because elsewhere you described the implicit IV growing to 96 bit= s, but here it seems we are only accounting for the old format (with leadin= g zeros)

To view, visit change 797. To unsubscribe, or= for help writing mail filters, visit settings.

<= /div>
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I74216d776d3e0a8dc987ec7b167= 1c8e8dcccdbd6
Gerrit-Change-Number: 797
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: cron2 <gert@...1296...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-CC: ordex <a@...2181...>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: cron2 <gert@...1296...>= ;
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Fri, 15 Nov 2024 09:29:16= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
--kOfcJW19Uo4=--