From owner-dev-commits-ports-main@freebsd.org Thu Sep 16 05:39:29 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7D61C675250; Thu, 16 Sep 2021 05:39:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4H95W5340kz4mCY; Thu, 16 Sep 2021 05:39:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 49A731BCC8; Thu, 16 Sep 2021 05:39:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18G5dTFU064861; Thu, 16 Sep 2021 05:39:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18G5dTew064860; Thu, 16 Sep 2021 05:39:29 GMT (envelope-from git) Date: Thu, 16 Sep 2021 05:39:29 GMT Message-Id: <202109160539.18G5dTew064860@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: c168a0df807e - main - security/liboqs: New port: C library for quantum-resistant cryptography MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c168a0df807e45f9d49ccb658d36858f9bedce26 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2021 05:39:29 -0000 The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c168a0df807e45f9d49ccb658d36858f9bedce26 commit c168a0df807e45f9d49ccb658d36858f9bedce26 Author: Yuri Victorovich AuthorDate: 2021-09-16 05:37:23 +0000 Commit: Yuri Victorovich CommitDate: 2021-09-16 05:38:21 +0000 security/liboqs: New port: C library for quantum-resistant cryptography --- security/Makefile | 1 + security/liboqs/Makefile | 25 +++++++++++++++++++++++++ security/liboqs/distinfo | 3 +++ security/liboqs/pkg-descr | 14 ++++++++++++++ security/liboqs/pkg-plist | 29 +++++++++++++++++++++++++++++ 5 files changed, 72 insertions(+) diff --git a/security/Makefile b/security/Makefile index a906ee24dc0e..0f0a6fbc577e 100644 --- a/security/Makefile +++ b/security/Makefile @@ -310,6 +310,7 @@ SUBDIR += libmcrypt SUBDIR += libnitrokey SUBDIR += libntlm + SUBDIR += liboqs SUBDIR += libotr SUBDIR += libotr3 SUBDIR += libp11 diff --git a/security/liboqs/Makefile b/security/liboqs/Makefile new file mode 100644 index 000000000000..5a7c4b5687b4 --- /dev/null +++ b/security/liboqs/Makefile @@ -0,0 +1,25 @@ +PORTNAME= liboqs +DISTVERSION= 0.7.0 +CATEGORIES= security + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C library for quantum-resistant cryptography + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} + +USES= cmake python:test ssl +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= open-quantum-safe + +CMAKE_ON= BUILD_SHARED_LIBS OQS_DIST_BUILD + +TEST_TARGET= run_tests # many tests fail to build, see https://github.com/open-quantum-safe/liboqs/issues/1090 + +BINARY_ALIAS= python3=${PYTHON_CMD} + +.include diff --git a/security/liboqs/distinfo b/security/liboqs/distinfo new file mode 100644 index 000000000000..bce1be0115c5 --- /dev/null +++ b/security/liboqs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1631761782 +SHA256 (open-quantum-safe-liboqs-0.7.0_GH0.tar.gz) = 7a2b01d33637869b02475c5a7b3b31e8f7cebce491877719f27954a89f6d764e +SIZE (open-quantum-safe-liboqs-0.7.0_GH0.tar.gz) = 7703900 diff --git a/security/liboqs/pkg-descr b/security/liboqs/pkg-descr new file mode 100644 index 000000000000..d72eb9baf98d --- /dev/null +++ b/security/liboqs/pkg-descr @@ -0,0 +1,14 @@ +liboqs provides: +* a collection of open source implementations of quantum-safe key encapsulation + mechanism (KEM) and digital signature algorithms; the full list can be found + below +* a common API for these algorithms +* a test harness and benchmarking routines + +liboqs is part of the Open Quantum Safe (OQS) project led by Douglas Stebila and +Michele Mosca, which aims to develop and integrate into applications +quantum-safe cryptography to facilitate deployment and testing in real world +contexts. In particular, OQS provides prototype integrations of liboqs into TLS +and SSH, through OpenSSL and OpenSSH. + +WWW: https://openquantumsafe.org/ diff --git a/security/liboqs/pkg-plist b/security/liboqs/pkg-plist new file mode 100644 index 000000000000..9b4b82760257 --- /dev/null +++ b/security/liboqs/pkg-plist @@ -0,0 +1,29 @@ +include/oqs/aes.h +include/oqs/common.h +include/oqs/kem.h +include/oqs/kem_bike.h +include/oqs/kem_classic_mceliece.h +include/oqs/kem_frodokem.h +include/oqs/kem_hqc.h +include/oqs/kem_kyber.h +include/oqs/kem_ntru.h +include/oqs/kem_ntruprime.h +include/oqs/kem_saber.h +include/oqs/kem_sike.h +include/oqs/oqs.h +include/oqs/oqsconfig.h +include/oqs/rand.h +include/oqs/sha2.h +include/oqs/sha3.h +include/oqs/sha3x4.h +include/oqs/sig.h +include/oqs/sig_dilithium.h +include/oqs/sig_falcon.h +include/oqs/sig_picnic.h +include/oqs/sig_rainbow.h +include/oqs/sig_sphincs.h +lib/cmake/liboqs/liboqsConfig-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/liboqs/liboqsConfig.cmake +lib/liboqs.so +lib/liboqs.so.0 +lib/liboqs.so.0.7.0