MIME-Version: 1.0 References: In-Reply-To: From: Tony He Date: Mon, 7 Dec 2020 17:28:48 +0800 Message-ID: Content-Type: multipart/alternative; boundary="000000000000c5bbb705b5dc7431" Subject: Re: [Openvpn-devel] [ovpn-dco] AES-CCM available for testing List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Just Keijser Cc: Antonio Quartulli , openvpn-devel --000000000000c5bbb705b5dc7431 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable yeah, also looking forward to add support authenc-hmac-sha256-cbc-aes because I have another IPQ806x device which support this mode but not CCM or GCM. IPQ806x devices are widely used for router users. Tony Jan Just Keijser =E4=BA=8E2020=E5=B9=B412=E6=9C=887=E6= =97=A5=E5=91=A8=E4=B8=80 =E4=B8=8B=E5=8D=885:12=E5=86=99=E9=81=93=EF=BC=9A > Hi Antonio, > > On 06/12/20 17:09, Antonio Quartulli wrote: > > Hi all, > > Some people have expressed interest in ovpn-dco supporting AES-CBC. > > However, since ovpn-dco is currently using the AEAD kernel crypto API > only, introducing support for CBC mode would require quite some > refactoring and we do not really want to do that (the community believes > that as of now AEAD ciphers should always be preferred moving forward). > > In a previous discussion on this mailing list, it was highlighted that > AES-CCM is nothing else than AES-CBC in disguise as AEAD cipher. > > (for the curious: it is AES "Counter with CBC-MAC", known as CCM and > described in RFC3610). > > For this reason I decided to give AES-CCM a try and I implemented in it > the "aes-ccm" branch of the ovpn-dco repo. > > I am not sure if we're going to merge it to master yet, but for now it > would be interesting to gather feedback from those interested in this > cipher. > > Please note that OpenVPN3 does not yet support this cipher, therefore > the only way to test AES-CCM in ovpn-dco is to use the ovpn-cli tool > provided in the tests/ folder. > > > To do so, just specify "aes-ccm" as algorithm when setting a new key. > > > > > excellent news! > Thank you very much for adding this so quickly; it won't help Tony He > though, as he is stuck using a rather old AL314 + R9000 chip which does n= ot > support CCM or GCM. I just checked the driver code and indeed there is no > HW support for GCM. They *do* support some AEAD algorithms: > > authenc-hmac-sha256-cbc-aes > authenc-hmac-sha384-cbc-aes > > which are listed as the (true) AEAD equivalent of AES+SHA ; the question > is : how hard would it be to add support for this (and would it be worth > it?) > > cheers, > > JJK > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel > --000000000000c5bbb705b5dc7431 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
yeah, also looking forward to add support authenc-hmac-sha= 256-cbc-aes because I have another IPQ806x device which support this mode b= ut not CCM or GCM. IPQ806x devices
are widely used for router users.

Tony

Jan Just Keijser <janjust@...1147...> =E4=BA=8E2020=E5=B9= =B412=E6=9C=887=E6=97=A5=E5=91=A8=E4=B8=80 =E4=B8=8B=E5=8D=885:12=E5=86=99= =E9=81=93=EF=BC=9A
=20=20 =20=20=20=20 =20=20
Hi Antonio,

On 06/12/20 17:09, Antonio Quartulli wrote:
Hi all,

Some people have expressed interest in ovpn-dco supporting AES-CBC.

However, since ovpn-dco is currently using the AEAD kernel crypto API
only, introducing support for CBC mode would require quite some
refactoring and we do not really want to do that (the community believes
that as of now AEAD ciphers should always be preferred moving forward).

In a previous discussion on this mailing list, it was highlighted that
AES-CCM is nothing else than AES-CBC in disguise as AEAD cipher.

(for the curious: it is AES "Counter with CBC-MAC", known as CCM =
and
described in RFC3610).

For this reason I decided to give AES-CCM a try and I implemented in it
the "aes-ccm" branch of the ovpn-dco repo.

I am not sure if we're going to merge it to master yet, but for now it
would be interesting to gather feedback from those interested in this
cipher.

Please note that OpenVPN3 does not yet support this cipher, therefore
the only way to test AES-CCM in ovpn-dco is to use the ovpn-cli tool
provided in the tests/ folder.


To do so, just specify "aes-ccm" as algorithm when setting a new =
key.



excellent news!
Thank you very much for adding this so quickly; it won't help Tony He though, as he is stuck using a rather old AL314 + R9000 chip which does not support CCM or GCM. I just checked the driver code and indeed there is no HW support for GCM.=C2=A0 They *do* support some AEAD algorithms:

=C2=A0 authenc-hmac-sha256-cbc-aes
=C2=A0 authenc-hmac-sha384-cbc-aes

which are listed as the (true) AEAD equivalent of AES+SHA ; the question is : how hard would it be to add support for this (and would it be worth it?)

cheers,

JJK
_______________________________________________
Openvpn-devel mailing list
Op= envpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listi= nfo/openvpn-devel
--000000000000c5bbb705b5dc7431--