MIME-Version: 1.0 References: In-Reply-To: From: Tony He Date: Tue, 1 Dec 2020 09:50:01 +0800 Message-ID: Content-Type: multipart/alternative; boundary="000000000000fcd95d05b55d58f1" Subject: Re: [Openvpn-devel] [ovpn-dco] Is cbc-hmac supported? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Arne Schwabe Cc: Antonio Quartulli , lev@...515..., openvpn-devel@lists.sourceforge.net --000000000000fcd95d05b55d58f1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Arne, openssl speed -evp aes-128-cbc type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-128-cbc 20035.60k 123261.54k 267081.60k 1094764.09k 9181370.18k openssl speed -evp aes-128-gcm type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-128-gcm 18738.76k 19284.91k 19524.44k 19606.87k 19685.46k openssl speed -evp aes-128-ccm type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-128-ccm 53859.07k 215581.12k 862070.02k 3460786.43k 27566347.61k openssl speed -evp sha1 type 16 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes sha1 3108.57k 12177.79k 57325.18k 181610.34k 1207364.27k openssl speed -evp chacha20-poly1305 chacha20-poly1305 is an unknown cipher or digest Using old openssl, so chacha20-poly1305 is not supported. Tony Arne Schwabe =E4=BA=8E2020=E5=B9=B411=E6=9C=8826=E6=97=A5= =E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D=886:40=E5=86=99=E9=81=93=EF=BC=9A > Am 26.11.20 um 10:41 schrieb Tony He: > > 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. > > > What numbers are we are talking in crypto speed? Could you provide from > your "poor" device: > > > openssl speed -evp aes-128-cbc > openssl speed -evp aes-128-gcm > openssl speed -evp aes-128-ccm > openssl speed -evp sha1 > openssl speed -evp chacha20-poly1305 > > I want to what difference/gain in terms of raw crypto speed we are > talking here. > > Arne > > > --000000000000fcd95d05b55d58f1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Arne,

openssl speed -evp aes-128-cbc=
type 1= 6 bytes 64 bytes 256 bytes 1024 bytes 8192 bytes aes-128-cbc 20035.60k 123261.54k 267081.60k 1094764.09k 9181370.= 18k
openssl speed -evp aes-128-gcm
type 16 bytes 64 byte= s 256 bytes 1024 bytes 8192 bytes aes-128-gcm 18738.76k 19284.91k 19524.44k 19606.87k 19685.= 46k
openssl speed -evp aes-128-ccm
type 16 bytes 64 byte= s 256 bytes 1024 bytes 8192 bytes aes-128-ccm 53859.07k 215581.12k 862070.02k 3460786.43k 27566347.= 61k
openssl speed -evp sha1
type 16 bytes 64 bytes 256 bytes 102= 4 bytes 8192 bytes sha1 3108.57k 12177.79k 57325.18k 181610.34k 1207364.= 27k
openssl speed -evp chacha20-poly1305
chacha20-poly1305 is an unknown cipher or d= igest
Using old openssl, so chacha= 20-poly1305 is not supported.

=
Tony

Arne Schwabe <arne@...1227...> =E4=BA=8E2020=E5=B9=B411=E6=9C=8826= =E6=97=A5=E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D=886:40=E5=86=99=E9=81=93=EF=BC= =9A
Am 26.11.20 = um 10:41 schrieb Tony He:
> 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 i= t
>>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=C2=A0 embedded device=C2=A0very busy.=C2= =A0That's why we
> need OpenVPN3 running in the kernel space.


What numbers are we are talking in crypto speed? Could you provide from
your "poor" device:


openssl speed -evp aes-128-cbc
openssl speed -evp aes-128-gcm
openssl speed -evp aes-128-ccm
openssl speed -evp sha1
openssl speed -evp chacha20-poly1305

I want to what difference/gain in terms of raw crypto speed we are
talking here.

Arne


--000000000000fcd95d05b55d58f1--