@ -7,17 +7,21 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := afalg_engine
PKG_VERSION := 1.1.0
PKG_VERSION := 1.2.0-beta.1
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://github.com/cotequeiroz/afalg_engine/archive/v$( PKG_VERSION)
PKG_HASH := 0c0304558e9450752656522a8f9036130f4e745c4818f02f92cb8d6c99357ed6
PKG_HASH := 6f0da98a3c12eaf50331ac7cd81f7b8800abf54b96fd73bd3e37cc50fd3d2ba8
PKG_MAINTAINER := Eneas U de Queiroz <cotequeiroz@gmail.com>
PKG_LICENSE := Apache-2.0
PKG_LICENSE_FILES := LICENSE
PKG_CONFIG_DEPENDS := CONFIG_AFALG_ZERO_COPY
PKG_CONFIG_DEPENDS := \
CONFIG_AFALG_DIGESTS \
CONFIG_AFALG_FALLBACK \
CONFIG_AFALG_UPDATE_CTR_IV \
CONFIG_AFALG_ZERO_COPY
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
@ -33,7 +37,8 @@ define Package/libopenssl-afalg_sync
URL:= https://github.com/cotequeiroz/afalg_engine
DEPENDS:= libopenssl @OPENSSL_ENGINE @!OPENSSL_ENGINE_BUILTIN_AFALG \
+libopenssl-conf +kmod-crypto-user
CONFLICTS:= libopenssl-afalg
CONFLICTS:= libopenssl-afalg $( if $( CONFIG_AFALG_FALLBACK) ,libopenssl-devcrypto)
MENU:= 1
e n d e f
d e f i n e P a c k a g e / l i b o p e n s s l - a f a l g _ s y n c / d e s c r i p t i o n
@ -41,21 +46,20 @@ define Package/libopenssl-afalg_sync/description
engine, but using the AF_ALG interface instead of /dev/crypto
It is different than the AF_ALG engine that ships with OpenSSL:
- it is faster
- it uses sync calls, instead of async
- it suports more algorithms
e n d e f
d e f i n e P a c k a g e / l i b o p e n s s l - a f a l g _ s y n c / c o n f i g
config AFALG_ZERO_COPY
depends on PACKAGE_libopenssl-afalg_sync
bool "Use Zero-Copy Mode"
help
Uses a Zero-Copy interface. Even though it is supposed to improve
performance, actual measurements indicate otherwise.
source " $( SOURCE) /Config.in "
e n d e f
CMAKE_OPTIONS += \
-DOPENSSL_ENGINES_DIR= /usr/lib/$( ENGINES_DIR) \
-DDIGESTS= $( if $( CONFIG_AFALG_DIGESTS) ,ON,OFF) \
-DFALLBACK= $( if $( CONFIG_AFALG_FALLBACK) ,ON,OFF) \
-DUPDATE_CTR_IV= $( if $( CONFIG_AFALG_UPDATE_CTR_IV) ,ON,OFF) \
-DUSE_ZERO_COPY= $( if $( CONFIG_AFALG_ZERO_COPY) ,ON,OFF)
d e f i n e P a c k a g e / l i b o p e n s s l - a f a l g _ s y n c / i n s t a l l