openssl and hardware acceleration AES-NI

Hello,

I'm trying to enable hardware acceleration for openssl.

CPU: Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz (3792.12-MHz K8-class CPU)
OS: 12.0-RELEASE-p2

Code:
# kldstat | egrep 'cryp|aes'
12    1 0xffffffff82f4a000     3110 cryptodev.ko
13    1 0xffffffff82f4e000     7ec0 aesni.ko

Code:
# dmesg | egrep 'aes|crypto'
cryptosoft0: <software crypto> on motherboard
aesni0: <AES-CBC,AES-XTS,AES-GCM,AES-ICM> on motherboard

Code:
# ls -la /dev/crypto
crw-rw-rw-  1 root  wheel  0x89 Jan 15 11:21 /dev/crypto

... but openssl doesn't see it:
Code:
# openssl engine -c -t 
(rdrand) Intel RDRAND engine
 [RAND]
     [ available ]
(dynamic) Dynamic engine loading support
     [ unavailable ]

On my other server with 11-STABLE everything works fine:
Code:
# openssl engine -c -t
(cryptodev) BSD cryptodev engine
 [RSA, DSA, DH, AES-128-CBC, AES-192-CBC, AES-256-CBC]
     [ available ]
(rdrand) Intel RDRAND engine
 [RAND]
     [ available ]
(dynamic) Dynamic engine loading support
     [ unavailable ]

How can I enable AES-NI aceleration on 12-RELEASE?

Thank you!
 
Back
Top