diff options
author | Eneas U de Queiroz <cotequeiroz@gmail.com> | 2022-04-19 12:02:09 -0300 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-06-09 00:06:55 +0200 |
commit | fe9c4593b5469b08f9195d5ffe09783e2ea50689 (patch) | |
tree | 462ca9868fceabfb0904f7a6735df0dd2be46389 /package/libs/wolfssl/Config.in | |
parent | 50b6f5604b158138878955cf6ce745381129ed05 (diff) | |
download | upstream-fe9c4593b5469b08f9195d5ffe09783e2ea50689.tar.gz upstream-fe9c4593b5469b08f9195d5ffe09783e2ea50689.tar.bz2 upstream-fe9c4593b5469b08f9195d5ffe09783e2ea50689.zip |
wolfssl: enable CPU crypto instructions
This enables AES & SHA CPU instructions for compatible armv8, and x86_64
architectures. Add this to the hardware acceleration choice, since they
can't be enabled at the same time.
The package was marked non-shared, since the arm CPUs may or may not
have crypto extensions enabled based on licensing; bcm27xx does not
enable them. There is no run-time detection of this for arm.
NOTE:
Should this be backported to a release branch, it must be done shortly
before a new minor release, because the change to nonshared will remove
libwolfssl from the shared packages, but the nonshared are only built in
a subsequent release!
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit 0a2edc2714dcda10be902c32525723ce2cbcb138)
Diffstat (limited to 'package/libs/wolfssl/Config.in')
-rw-r--r-- | package/libs/wolfssl/Config.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/libs/wolfssl/Config.in b/package/libs/wolfssl/Config.in index b32d5ab6cb..f495a90ff6 100644 --- a/package/libs/wolfssl/Config.in +++ b/package/libs/wolfssl/Config.in @@ -62,13 +62,25 @@ config WOLFSSL_ALT_NAMES config WOLFSSL_HAS_DEVCRYPTO bool +config WOLFSSL_ASM_CAPABLE + bool + default x86_64 || (aarch64 && !TARGET_bcm27xx) + choice prompt "Hardware Acceleration" + default WOLFSSL_HAS_CPU_CRYPTO if WOLFSSL_ASM_CAPABLE default WOLFSSL_HAS_NO_HW config WOLFSSL_HAS_NO_HW bool "None" + config WOLFSSL_HAS_CPU_CRYPTO + bool "Use CPU crypto instructions" + depends on WOLFSSL_ASM_CAPABLE + help + This will use Intel AESNI insturctions or armv8 Crypto Extensions. + Either of them should easily outperform hardware crypto in WolfSSL. + config WOLFSSL_HAS_AFALG bool "AF_ALG" |