Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AF_ALG for openssl hardware acceleration?

689 views
Skip to first unread message

r...@softhome.net

unread,
May 24, 2013, 4:13:19 PM5/24/13
to
Is the AF_ALG plugin still the current method to enable openssl to make use
of hardware acceleration via Linux kernel crypto-api?

The current board support package for my embedded system uses Linux 3.0.4
with openssl 1.0.0j. The processor is Freescale P2020E which has security
engine supported by kernel crypto-api using Talitos driver.

I followed instructions from these two websites:

http://src.carnivore.it/users/common/af_alg/about/

http://masu.6f.sk/index.php/Nsa310_crypto

Upon updating the openssl.cnf file as directed in these websites, openssl
generates the following errors:

# openssl speed -evp aes-128-cbc -engine af_alg -elapsed
Error configuring OpenSSL
805465480:error:260BC066:engine routines:INT_ENGINE_CONFIGURE:engine
configuration error:eng_cnf.c:204:
805465480:error:0E07606D:configuration file routines:MODULE_RUN:module
initialization error:conf_mod.c:235:module=engines, value=openssl_engines,
retcode=-1

Here is the section I added to the openssl.cnf file:

openssl_conf = openssl_def

[ openssl_def ]
engines = openssl_engines

[ openssl_engines ]
af_alg = af_alg_engine

[ af_alg_engine ]
default_algorithms = ALL
CIPHERS=aes-128-cbc
DIGESTS=sha1
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

tell...@googlemail.com

unread,
Feb 3, 2014, 5:31:20 AM2/3/14
to
Hi,

Have you solved your problem? I have the exact problem .I have a freescale board too!. Any help would be really appreciated. Thanks buddy.

-Tera

nht...@gmail.com

unread,
Mar 6, 2014, 1:05:25 AM3/6/14
to
Hi,
The root cause is your system is lack af_alg module. You should build it first then retest.
0 new messages