Accepting request 1035875 from home:msmeissn

openquantum safe openssl 3 provider plugin

OBS-URL: https://build.opensuse.org/request/show/1035875
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/oqs-provider?expand=0&rev=1
This commit is contained in:
Marcus Meissner 2022-11-15 15:21:09 +00:00 committed by Git OBS Bridge
commit e3542f2a80
7 changed files with 117 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a3c3897d18b63ee58dc592304973e7264776be6e7cfa88f46dae6df91ee030c
size 76156

View File

@ -0,0 +1,12 @@
Index: oqs-provider-0.3.0/CMakeLists.txt
===================================================================
--- oqs-provider-0.3.0.orig/CMakeLists.txt
+++ oqs-provider-0.3.0/CMakeLists.txt
@@ -22,5 +22,5 @@ include_directories(${liboqs_INCLUDE_DIR
add_subdirectory(oqsprov)
# Testing
-enable_testing()
-add_subdirectory(test)
+#enable_testing()
+#add_subdirectory(test)

View File

@ -0,0 +1,13 @@
Index: oqs-provider-0.3.0/CMakeLists.txt
===================================================================
--- oqs-provider-0.3.0.orig/CMakeLists.txt
+++ oqs-provider-0.3.0/CMakeLists.txt
@@ -14,7 +14,7 @@ message("-- Looking for liboqs include d
find_path(liboqs_INCLUDE_DIR NAMES oqs/oqs.h REQUIRED)
message("-- Looking for liboqs include directory - found ${liboqs_INCLUDE_DIR}")
message("-- Looking for liboqs library")
-find_library(liboqs_LIBRARY NAMES liboqs.a REQUIRED)
+find_library(liboqs_LIBRARY NAMES liboqs.so REQUIRED)
message("-- Looking for liboqs library - found ${liboqs_LIBRARY}")
include_directories(${liboqs_INCLUDE_DIR})

4
oqs-provider.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Mon Nov 14 15:43:52 UTC 2022 - Marcus Meissner <meissner@suse.com>
- initial import of openssl-3 plugin for liboqs

61
oqs-provider.spec Normal file
View File

@ -0,0 +1,61 @@
#
# spec file for package oqs-provider
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: oqs-provider
Version: 0.3.0
Release: 0
Summary: openssl 3 provider making quantum safe cryptography available for openssl-3
License: MIT
Group: Productivity/Security
URL: https://github.com/open-quantum-safe/oqs-provider/
Source: https://github.com/open-quantum-safe/oqs-provider/archive/refs/tags/%{version}.tar.gz#/%name-%version.tar.gz
Patch0: oqs-provider-shared-liboqs.patch
# currently would need libtestutil.a from openssl-3, so basically a copy of openssl-3 to test.
Patch1: oqs-provider-disable-test.patch
BuildRequires: cmake
BuildRequires: libopenssl-3-devel
BuildRequires: liboqs-devel
%description
This is a plugin/shared library making available quantum safe cryptography (QSC) to OpenSSL (3) installations via the provider API.
Sample call:
openssl-3 ciphers -provider oqsprovider
%prep
%autosetup
%build
mkdir build
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -std=gnu11"
cd build
cmake -DBUILD_SHARED_LIBS=ON ..
%cmake_build
%install
install -d %buildroot/%{_libdir}/ossl-modules/
install -m 755 -c build/oqsprov/oqsprovider.so %buildroot/%{_libdir}/ossl-modules/
%files
%defattr(-,root,root)
%license LICENSE.txt
%dir /%{_libdir}/ossl-modules
/%{_libdir}/ossl-modules/oqsprovider.so
%changelog