From: "flichtenheld (Code Review)" Date: Mon, 23 Dec 2024 11:39:32 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <67ea97028ce8305c475b6d85e7d9d57a142f7e50-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="0yT3XXAHv8w="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Change API of init_key_ctx to use struct key_paramters List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --0yT3XXAHv8w= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. flichtenheld has posted comments on this change. ( http://gerrit.openvpn.ne= t/c/openvpn/+/801?usp=3Demail ) Change subject: Change API of init_key_ctx to use struct key_paramters ...................................................................... Patch Set 8: Code-Review-1 (7 comments) Commit Message: http://gerrit.openvpn.net/c/openvpn/+/801/comment/d5dc012d_2cbbcd2a : PS8, Line 7: Change API of init_key_ctx to use struct key_paramters key_parameters http://gerrit.openvpn.net/c/openvpn/+/801/comment/4aa5e0d0_d728fca3 : PS8, Line 9: This introduces a new structure key_paramters. The reason is t= hat the key_parameters Patchset: PS8: Typos and nitpicks File src/openvpn/crypto.h: http://gerrit.openvpn.net/c/openvpn/+/801/comment/475bd1eb_01333a7a : PS8, Line 176: * Converts a struct key representation into a struct key_pa= rams representation. key_parameters File tests/unit_tests/openvpn/test_auth_token.c: http://gerrit.openvpn.net/c/openvpn/+/801/comment/aaed804b_181e091c : PS8, Line 91: key.hmac_size =3D 64; /* 64 byte of 0 */ Use `MAX_HMAC_KEY_LENGTH` instead? File tests/unit_tests/openvpn/test_tls_crypt.c: http://gerrit.openvpn.net/c/openvpn/+/801/comment/491ee4f7_038e96a7 : PS8, Line 160: struct key_parameters key =3D { .cipher =3D { 0 }, .hmac= =3D { 0 }, .hmac_size =3D 64, .cipher_size =3D 64 }; Use `MAX_HMAC_KEY_LENGTH` and `MAX_CIPHER_KEY_LENGTH` instead? http://gerrit.openvpn.net/c/openvpn/+/801/comment/09708593_0ee44299 : PS8, Line 370: struct key_parameters key =3D { .cipher =3D { 1 }, .hmac= =3D { 1 }, .cipher_size =3D 64, .hmac_size =3D 64 }; Use `MAX_HMAC_KEY_LENGTH` and `MAX_CIPHER_KEY_LENGTH` instead? -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/801?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: I4a981c5a70717e2276d89bf83a06c7fdbe6712d7 Gerrit-Change-Number: 801 Gerrit-PatchSet: 8 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Comment-Date: Mon, 23 Dec 2024 11:39:32 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --0yT3XXAHv8w= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

Patch set 8:Code-Review -1=

Vi= ew Change

7 comments:

  • Commit Message:

  • Patchset:

  • File src/openvpn/crypto.h:

    • Patch Set #8, Line 176: * Converts a struct key representation into= a struct key_params representation.

      key_parameters

  • File tests/unit_tests/openvpn/test_auth_toke= n.c:

    • Patch Set #8, = Line 91: key.hmac_s= ize =3D 64; /* 64 byte of 0 */

      Use `MAX_HMAC_KEY_LENGTH` instead?

    • File tests/unit_tests/openvp= n/test_tls_crypt.c:

      • Patch Set #8, Line 160: struct key_parameters key =3D { .cipher =3D { 0 }, .hmac =3D { 0 }, .= hmac_size =3D 64, .cipher_size =3D 64 };

        Use `MAX_HMAC_KEY_LENGTH` and `MAX_CIPHE= R_KEY_LENGTH` instead?

      • Patch Set #8, Line 370: struct key_parameters key =3D = { .cipher =3D { 1 }, .hmac =3D { 1 }, .cipher_size =3D 64, .hmac_size =3D 6= 4 };

        U= se `MAX_HMAC_KEY_LENGTH` and `MAX_CIPHER_KEY_LENGTH` instead?

      =

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

    Gerrit-Project: openvpn
    Gerrit-Branch: master
    Gerrit-Change-Id: I4a981c5a70717e2276d89bf83a0= 6c7fdbe6712d7
    Gerrit-Change-Number: 801
    Gerrit-PatchSet: 8
    Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
    Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
    Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
    Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
    Gerrit-Comment-Date: Mon, 23 Dec 2024 11:39:32= +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment
    --0yT3XXAHv8w=--