From: Alexander Dahl via ptxdist <ptxdist@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>, Ladislav Michl <ladis@linux-mips.org>
Subject: [ptxdist] [RFC PATCH 2/2] openssl: Add option for AF_ALG support
Date: Wed, 4 Mar 2026 13:02:01 +0100 [thread overview]
Message-ID: <20260304120201.3180281-3-ada@thorsis.com> (raw)
In-Reply-To: <20260304120201.3180281-1-ada@thorsis.com>
There is a netlink socket based kernel interface for hardware crypto
acceleration, which can be used by openssl too, at least for some basic
aes ciphers.
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
rules/openssl.in | 7 +++++++
rules/openssl.make | 5 +++++
2 files changed, 12 insertions(+)
diff --git a/rules/openssl.in b/rules/openssl.in
index 474cf42fb..2e6a980f1 100644
--- a/rules/openssl.in
+++ b/rules/openssl.in
@@ -29,6 +29,13 @@ config OPENSSL_BIN
help
Whether to build and install OpenSSL binary.
+config OPENSSL_AFALG
+ bool
+ prompt "support AF_ALG engine"
+ help
+ Enable support for using the AF_ALG socket type as kernel
+ interface for hardware acceleration.
+
config OPENSSL_CRYPTODEV
bool
prompt "use cryptodev hw acceleration"
diff --git a/rules/openssl.make b/rules/openssl.make
index 2ffd9b4b6..798bfc415 100644
--- a/rules/openssl.make
+++ b/rules/openssl.make
@@ -69,6 +69,7 @@ OPENSSL_CONF_OPT := \
--libdir=/usr/lib \
--openssldir=/usr/lib/ssl \
shared \
+ $(call ptx/ifdef, PTXCONF_OPENSSL_AFALG, enable-afalgeng, no-afalgeng) \
$(call ptx/ifdef, PTXCONF_OPENSSL_CRYPTODEV, enable-devcryptoeng, no-devcryptoeng) \
$(call ptx/ifdef, PTXCONF_OPENSSL_KTLS, enable-ktls, no-ktls) \
no-idea \
@@ -114,6 +115,10 @@ ifdef PTXCONF_OPENSSL_LEGACY
/usr/lib/ossl-modules/legacy.so)
endif
+ifdef PTXCONF_OPENSSL_AFALG
+ @$(call install_copy, openssl, 0, 0, 0644, -, \
+ /usr/lib/engines-3/afalg.so)
+endif
ifdef PTXCONF_OPENSSL_CRYPTODEV
@$(call install_copy, openssl, 0, 0, 0644, -, \
/usr/lib/engines-3/devcrypto.so)
--
2.47.3
next prev parent reply other threads:[~2026-03-04 12:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-04 12:01 [ptxdist] [RFC PATCH 0/2] openssl: Add more hw acceleration support options Alexander Dahl via ptxdist
2026-03-04 12:02 ` [ptxdist] [RFC PATCH 1/2] openssl: Install cryptodev shared object to target Alexander Dahl via ptxdist
2026-03-04 12:02 ` Alexander Dahl via ptxdist [this message]
2026-03-04 16:14 ` [ptxdist] [RFC PATCH 0/2] openssl: Add more hw acceleration support options Christian Melki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260304120201.3180281-3-ada@thorsis.com \
--to=ptxdist@pengutronix.de \
--cc=ada@thorsis.com \
--cc=ladis@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox