Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions libs/libopenssl-oqsprovider/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/openssl-module.mk

PKG_NAME:=libopenssl-oqsprovider
PKG_VERSION:=0.10.0
PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/open-quantum-safe/oqs-provider.git
PKG_SOURCE_VERSION:=f076e91faab88871ff1973db0287cc6e4b94c4b0
PKG_MIRROR_HASH:=cf8fcc4b1cd8fc914bc7948c35666769d5f4a1ca40a36c049f116d6e216b3f82

PKG_MAINTAINER:=Christian Marangi <ansuelsmth@gmail.com>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE.txt

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk

$(eval $(call Package/openssl/add-provider,oqsprovider))
define Package/libopenssl-oqsprovider
$(call Package/openssl/module/Default)
TITLE:=Open Quantum Safe provider for OpenSSL (3.x)
DEPENDS+=+liboqs
URL:=https://openquantumsafe.org/
endef

define Package/libopenssl-oqsprovider/description
This enable quantum-safe cryptography (QSC) in a standard OpenSSL (3.x)
distribution by way of implementing a single shared library, the
OQS provider.
endef

CMAKE_OPTIONS += \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DOPENSSL_MODULES_PATH=/usr/lib/$(MODULES_DIR)

$(eval $(call BuildPackage,libopenssl-oqsprovider))
3 changes: 3 additions & 0 deletions libs/libopenssl-oqsprovider/files/oqsprovider.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[oqsprovider_sect]
activate = 1

19 changes: 19 additions & 0 deletions libs/libopenssl-oqsprovider/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

test_oqsprovider() {
RET=0
apk add openssl-util
openssl list -all-algorithms | grep oqsprovider || RET=1
openssl genpkey -verbose -algorithm mayo1 -text || RET=1
exit $RET
}

case "$1" in
libopenssl-oqsprovider)
test_oqsprovider
;;
*)
echo "Unexpected package '$1'" >&2
exit 1
;;
esac
Loading