From: "plaisthos (Code Review)"
Date: Thu, 21 Nov 2024 13:07:14 +0000
In-Reply-To:
References:
Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net,
frank@...2641..., max@...2606...
Message-ID: <74819a4df37ac3576d26dfa0a74ef39c01332e73-EmailReviewComments-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="fzORvS6MLDA="; charset=UTF-8
Subject: [Openvpn-devel] [L] Change in openvpn[master]: Implement HKDF
expand function based on RFC 8446
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Cc: MaxF , flichtenheld , openvpn-devel
--fzORvS6MLDA=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: MaxF, flichtenheld.
plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c=
/openvpn/+/798?usp=3Demail )
Change subject: Implement HKDF expand function based on RFC 8446
......................................................................
Patch Set 4:
(1 comment)
File src/openvpn/crypto_epoch.c:
http://gerrit.openvpn.net/c/openvpn/+/798/comment/a9e383fb_853c2f64 :
PS4, Line 86: /* 2 byte for the outlen encoded as uint16, 5 bytes for "=
ovpn " */
: int hkdf_label_len =3D 2 + 5 + label_len + context_len;
: struct buffer hkdf_label =3D alloc_buf_gc(hkdf_label_len,=
&gc);
:
:
: buf_write_u16(&hkdf_label, out_len);
: buf_write(&hkdf_label, "ovpn ", 5);
: buf_write(&hkdf_label, label, label_len);
: if (context_len > 0)
: {
: buf_write(&hkdf_label, context, context_len);
: }
> TLS 1.3 does use length fields here, it's implied by the "opaque label<7.=
.255>" notation. [=E2=80=A6]
Yeah, you are right. I think I still want to modify it to be the same as in=
the TLS standard as that is propabably better in the long run, especially =
for DCO implementation as they then may reuse something written for TLS in =
kernel etc.
I just now have to figure out why OpenSSL ends up having 0x00 0x54 between =
opvn and unit test in the expanded label and if that is on purpose or if I =
messed up using the OpenSSL API.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/798?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: I3a1c6561f4d9a69e2a441d49dff620b4258a1bcc
Gerrit-Change-Number: 798
Gerrit-PatchSet: 4
Gerrit-Owner: plaisthos
Gerrit-Reviewer: MaxF
Gerrit-Reviewer: flichtenheld
Gerrit-CC: openvpn-devel
Gerrit-Attention: flichtenheld
Gerrit-Attention: MaxF
Gerrit-Comment-Date: Thu, 21 Nov 2024 13:07:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: plaisthos
Comment-In-Reply-To: MaxF
Gerrit-MessageType: comment
--fzORvS6MLDA=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: MaxF, flichtenheld.
View C=
hange
1 comment:
TLS 1.3 does use length fields here, it's imp=
lied by the "opaque label<7..255>" notation. [=E2=80=A6]Ye=
ah, you are right. I think I still want to modify it to be the same as in t=
he TLS standard as that is propabably better in the long run, especially fo=
r DCO implementation as they then may reuse something written for TLS in ke=
rnel etc.
I j=
ust now have to figure out why OpenSSL ends up having 0x00 0x54 between opv=
n and unit test in the expanded label and if that is on purpose or if I mes=
sed up using the OpenSSL API.
To view, visit change 798. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3a1c6561f4d9a69e2a441d49dff=
620b4258a1bcc
Gerrit-Change-Number: 798
Gerrit-PatchSet: 4
Gerrit-Owner: plaisthos <arne-openvpn@...1711...=
27...>
Gerrit-Reviewer: MaxF <max@...2606...> <=
/div>
Gerrit-Reviewer: flichtenheld <frank@...2716...=
1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...=
41...>
Gerrit-Attention: MaxF <max@...2606...> =
Gerrit-Comment-Date: Thu, 21 Nov 2024 13:07:14=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: plaisthos <arne-openvp=
n@...1227...>
Comment-In-Reply-To: MaxF <max@...2606...&g=
t;
Gerrit-MessageType: comment
--fzORvS6MLDA=--