Date: Wed, 20 Jul 2022 21:48:45 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 265348] aesni should take advantage of AVX instruction set to do hardware accelerate HMAC Message-ID: <bug-265348-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265348 Bug ID: 265348 Summary: aesni should take advantage of AVX instruction set to do hardware accelerate HMAC Product: Base System Version: 13.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: clear.screen@orange.fr =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Configuration =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 1 - FREEBSD ------------------------------------------------- Kernel version: FreeBSD 13.0-RELEASE-p11 #0: Tue Apr 5 18:54:35 UTC 2022 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GEN= ERIC 2 - CPU ------------------------------------------------- intel xeon E5-2603 v3 Features2=3D0x7ffefbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSS= E3,SDBG,FMA,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDL= T,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> 3 - AESNI ------------------------------------------------- aesni register following features : aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS> 4 - GELI ------------------------------------------------- kernel: 7 userland: 7 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DESCRIPTION =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D If only AES instruction set are available and not SHA instruction set, geli= is working as "accelerated software" with -e AES-XTS and only "software" with = -e AES-XTS AND -a HMAC/* As instruction set exists to accelerate HMAC SSE but mainly AVX which seems= to be employed on linux to accelerate SHA (sample=20 linux/arch/x86/crypto/sha256-avx-asm.S) Freebsd should take if possible advantage of such instructions to add benef= its of full acceleration for encryption with AES instruction set and authentica= tion with AVX instruction set (fast SHA implementation). --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265348-227>