MIME-Version: 1.0 References: In-Reply-To: From: Tony He Date: Thu, 26 Nov 2020 17:41:52 +0800 Message-ID: Content-Type: multipart/alternative; boundary="0000000000003bcd2b05b4ff5b5c" Subject: Re: [Openvpn-devel] [ovpn-dco] Is cbc-hmac supported? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Antonio Quartulli , lev@...515..., openvpn-devel@lists.sourceforge.net --0000000000003bcd2b05b4ff5b5c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Arne, >Since the original thread was not on the mailing list I am missing your >goal but if your crypto acelator already works with OpenSSL, then it >will also work with the "normal" OpenVPN Yes, it wokrs with "normal" OpenVPN(OpenVPN2), but according to the test result, it's still not fast(about 60Mbps). The bottleneck is not encryption operation any more. It comes from the switch of user space and kernel space in the OpenVPN2, which makes the poor CPU of embedded device very busy. That's why we need OpenVPN3 running in the kernel space. Tony Tony <383181189@...1414...> =E4=BA=8E2020=E5=B9=B411=E6=9C=8826=E6=97=A5=E5= =91=A8=E5=9B=9B =E4=B8=8B=E5=8D=885:32=E5=86=99=E9=81=93=EF=BC=9A > > > > ------------------ =E5=8E=9F=E5=A7=8B=E9=82=AE=E4=BB=B6 ------------------ > *=E5=8F=91=E4=BB=B6=E4=BA=BA:* "Arne Schwabe" ; > *=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:* 2020=E5=B9=B411=E6=9C=8826=E6=97= =A5(=E6=98=9F=E6=9C=9F=E5=9B=9B) =E4=B8=8B=E5=8D=885:22 > *=E6=94=B6=E4=BB=B6=E4=BA=BA:* "Tony He";"Antonio Qu= artulli"; > *=E6=8A=84=E9=80=81:* "lev";"openvpn-devel"< > openvpn-devel@lists.sourceforge.net>; > *=E4=B8=BB=E9=A2=98:* Re: [Openvpn-devel] [ovpn-dco] Is cbc-hmac supporte= d? > > Am 26.11.20 um 01:46 schrieb Tony He: > >>OpenSSL directly talks to the crypto engine via a proprietary interface > >>that the FW/driver exposes to userspace. The *data* flow does not cross > >>the linux kernel crypto API > > > > No, OpenSSL doesn't directly talk to the crypto engine via a > > proprietary interface that the FW/driver exposes to userspace. > > "cryptodev engine" is NOT the "HW engine" chip vendor provides. It's a > > common interface and its source is not from > > > To be honest. We currently aim to feature current state of the art > support. And with supporting only the AEAD algorithm we support all > clients of 2.4 and later. > > Since the original thread was not on the mailing list I am missing your > goal but if your crypto acelator already works with OpenSSL, then it > will also work with the "normal" OpenVPN. > > If you look over the fence at IPSec accleration in Intel NIC hardware, > you will find that those also only support AES-GCM. And that with even > hardware that came out almost 10 years ago. > > Or look at TLS 1.3. De facto there is only AES-GCM and Chacha20-Poly1305 > left as standard. TLS1_3_RFC_AES_128_CCM_8_SHA256 is specified but you > need to specifically configure your TLS library to support this. This > inclusion of AES-CCM is specifically to cater for use use cases like your= s. > > Since AES-CCM is an AEAD cipher supporting that makes more sense and > might very straightforword if it is supported by the AEAD APIs we > already use. > > Arne > > > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel > --0000000000003bcd2b05b4ff5b5c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Arne,

>Since the original thread = was not on the mailing list I am missing your
>goal but if your crypt= o acelator already works with OpenSSL, then it
>will also work with t= he "normal" OpenVPN

Yes, it wokrs wi= th "normal" OpenVPN(OpenVPN2), but according to the test result, = it's still not fast(about 60Mbps).
The bottleneck is not encr= yption operation any more. It comes from the switch of user space and kerne= l space in the OpenVPN2,
which makes the poor CPU of=C2=A0 embedd= ed device=C2=A0very busy.=C2= =A0That's why we need OpenVPN3 running in the kernel space.

Tony

Tony <383181189@...1414...> =E4=BA=8E2020=E5=B9=B411=E6=9C=8826=E6=97= =A5=E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D=885:32=E5=86=99=E9=81=93=EF=BC=9A
=



------------------=C2=A0=E5=8E=9F=E5= =A7=8B=E9=82=AE=E4=BB=B6=C2=A0------------------
=E5=8F=91=E4=BB=B6= =E4=BA=BA: = "Arne Schwa= be" = <a= rne@...1227...>;
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:<= /b>=C2=A02020=E5=B9=B411=E6=9C=8826=E6=97=A5(=E6=98=9F=E6=9C=9F=E5=9B=9B) = =E4=B8=8B=E5=8D=885:22
=E6=94=B6=E4=BB=B6=E4=BA=BA:=C2=A0&= quot;Tony He"<huangya90@...277...>;"Antonio Quartulli"<a@...2586...= ..>;
=E6=8A=84=E9=80=81:=C2=A0"lev"<lev@...515...>;"op= envpn-devel"<openvpn-devel@lists.sourceforge.net>;
<= b>=E4=B8=BB=E9=A2=98:=C2=A0Re: [Openvpn-devel] [ovpn-dco] Is cbc-hmac s= upported?

Am 26.11.20 um 01:46 schrieb Tony He:>>OpenSSL directly talks to the crypto engine via a proprietary int= erface
>>that the FW/driver exposes to userspace. The *data* flow = does not cross
>>the linux kernel crypto API
>
> No, = OpenSSL doesn't directly talk to the=C2=A0=C2=A0crypto engine via a
= > proprietary interface=C2=A0that the FW/driver exposes to userspace.> "cryptodev engine" is NOT the "HW engine" chip ve= ndor provides. It's a
> common interface and its source is not fr= om


To be honest. We currently aim to feature current state of th= e art
support. And with supporting only the AEAD algorithm we support al= l
clients of 2.4 and later.

Since the original thread was not on = the mailing list I am missing your
goal but if your crypto acelator alre= ady works with OpenSSL, then it
will also work with the "normal&quo= t; OpenVPN.

If you look over the fence at IPSec accleration in Intel= NIC hardware,
you will find that those also only support AES-GCM. And t= hat with even
hardware that came out almost 10 years ago.

Or look= at TLS 1.3. De facto there is only AES-GCM and Chacha20-Poly1305
left a= s standard. TLS1_3_RFC_AES_128_CCM_8_SHA256 is specified but you
need to= specifically configure your TLS library to support this. This
inclusion= of AES-CCM is specifically to cater for use use cases like yours.

S= ince AES-CCM is an AEAD cipher supporting that makes more sense and
migh= t very straightforword if it is supported by the AEAD APIs we
already us= e.

Arne


_______________________________________________Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel<= br>
--0000000000003bcd2b05b4ff5b5c--