Date: Fri, 11 Oct 2019 03:38:10 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r514259 - in head/security: . tfhe tfhe/files Message-ID: <201910110338.x9B3cAb9020129@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Fri Oct 11 03:38:09 2019 New Revision: 514259 URL: https://svnweb.freebsd.org/changeset/ports/514259 Log: New port: security/tfhe: Fast Fully Homomorphic Encryption (FHE) library over the Torus Added: head/security/tfhe/ head/security/tfhe/Makefile (contents, props changed) head/security/tfhe/distinfo (contents, props changed) head/security/tfhe/files/ head/security/tfhe/files/patch-Makefile (contents, props changed) head/security/tfhe/files/patch-src_libtfhe_fft__processors_nayuki_fft__processor__nayuki.cpp (contents, props changed) head/security/tfhe/files/patch-src_test_CMakeLists.txt (contents, props changed) head/security/tfhe/pkg-descr (contents, props changed) head/security/tfhe/pkg-plist (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Fri Oct 11 00:49:31 2019 (r514258) +++ head/security/Makefile Fri Oct 11 03:38:09 2019 (r514259) @@ -1277,6 +1277,7 @@ SUBDIR += tcpcrypt SUBDIR += teleport SUBDIR += testssl.sh + SUBDIR += tfhe SUBDIR += theonionbox SUBDIR += tinc SUBDIR += tinc-devel Added: head/security/tfhe/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/tfhe/Makefile Fri Oct 11 03:38:09 2019 (r514259) @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= tfhe +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.1-14 +DISTVERSIONSUFFIX= -g3319e2c +CATEGORIES= security + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Fast Fully Homomorphic Encryption (FHE) library over the Torus + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= cmake:devel/cmake +TEST_DEPENDS= fftw3>0:math/fftw3 \ + googletest>0:devel/googletest + +USES= gmake localbase:ldflags +USE_GITHUB= yes +USE_LDCONFIG= yes + +BINARY_ALIAS= make=${GMAKE} + +TEST_TARGET= test + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so + +.include <bsd.port.mk> Added: head/security/tfhe/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/tfhe/distinfo Fri Oct 11 03:38:09 2019 (r514259) @@ -0,0 +1,3 @@ +TIMESTAMP = 1570762763 +SHA256 (tfhe-tfhe-v1.0.1-14-g3319e2c_GH0.tar.gz) = dcf3b8fb0c5528e1b38dc86bb732cba57a136cfe1de3f830ed2f4204a7251338 +SIZE (tfhe-tfhe-v1.0.1-14-g3319e2c_GH0.tar.gz) = 153656 Added: head/security/tfhe/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/tfhe/files/patch-Makefile Fri Oct 11 03:38:09 2019 (r514259) @@ -0,0 +1,18 @@ +--- Makefile.orig 2019-10-11 03:02:18 UTC ++++ Makefile +@@ -17,13 +17,13 @@ clean: build + distclean: + rm -rf build builddtests buildotests; true + +-test: builddtests buildotests src/test/googletest/CMakeLists.txt ++test: builddtests buildotests #src/test/googletest/CMakeLists.txt + make -j $(nproc) -C builddtests VERBOSE=1 + make -j $(nproc) -C buildotests VERBOSE=1 + make -j $(nproc) -C builddtests test VERBOSE=1 + make -j $(nproc) -C buildotests test VERBOSE=1 + +-build: src/test/googletest/CMakeLists.txt ++build: #src/test/googletest/CMakeLists.txt + mkdir build; cd build; cmake ../src; cd .. + + builddtests: Added: head/security/tfhe/files/patch-src_libtfhe_fft__processors_nayuki_fft__processor__nayuki.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/tfhe/files/patch-src_libtfhe_fft__processors_nayuki_fft__processor__nayuki.cpp Fri Oct 11 03:38:09 2019 (r514259) @@ -0,0 +1,11 @@ +--- src/libtfhe/fft_processors/nayuki/fft_processor_nayuki.cpp.orig 2019-10-11 03:07:51 UTC ++++ src/libtfhe/fft_processors/nayuki/fft_processor_nayuki.cpp +@@ -12,7 +12,7 @@ FFT_Processor_nayuki::FFT_Processor_nayuki(const int32 + tables_reverse = fft_init_reverse(_2N); + omegaxminus1 = (cplx*) malloc(sizeof(cplx) * _2N); + for (int32_t x=0; x<_2N; x++) { +- omegaxminus1[x]=cos(x*M_PI/N)-1. + sin(x*M_PI/N) * 1i; ++ omegaxminus1[x]=std::complex<double>(cos(x*M_PI/N)-1., sin(x*M_PI/N)); + //exp(i.x.pi/N)-1 + } + } Added: head/security/tfhe/files/patch-src_test_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/tfhe/files/patch-src_test_CMakeLists.txt Fri Oct 11 03:38:09 2019 (r514259) @@ -0,0 +1,10 @@ +--- src/test/CMakeLists.txt.orig 2019-10-11 03:19:42 UTC ++++ src/test/CMakeLists.txt +@@ -1,6 +1,6 @@ + cmake_minimum_required(VERSION 3.0) + +-add_subdirectory(googletest EXCLUDE_FROM_ALL) ++#add_subdirectory(googletest EXCLUDE_FROM_ALL) + + include_directories(${GTEST_INCLUDE_DIRS}) + Added: head/security/tfhe/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/tfhe/pkg-descr Fri Oct 11 03:38:09 2019 (r514259) @@ -0,0 +1,10 @@ +TFHE is open-source software. The scheme is described in the paper +"Faster fully homomorphic encryption: Bootstrapping in less than 0.1 seconds" +presented at the IACR conference Asiacrypt 2016 by Ilaria Chillotti, +Nicolas Gama, Mariya Georgieva, Malika Izabachene. + +The Fully Homomorphic Encryption is a cryptosystem that supports arbitrary +computation on ciphertexts. It may be used by banks to perform computations on +fully encrypted client information. + +WWW: https://github.com/tfhe/tfhe Added: head/security/tfhe/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/tfhe/pkg-plist Fri Oct 11 03:38:09 2019 (r514259) @@ -0,0 +1,26 @@ +include/tfhe/lagrangehalfc_arithmetic.h +include/tfhe/lwe-functions.h +include/tfhe/lwebootstrappingkey.h +include/tfhe/lwekey.h +include/tfhe/lwekeyswitch.h +include/tfhe/lweparams.h +include/tfhe/lwesamples.h +include/tfhe/numeric_functions.h +include/tfhe/polynomials.h +include/tfhe/polynomials_arithmetic.h +include/tfhe/tfhe.h +include/tfhe/tfhe_core.h +include/tfhe/tfhe_garbage_collector.h +include/tfhe/tfhe_gate_bootstrapping_functions.h +include/tfhe/tfhe_gate_bootstrapping_structures.h +include/tfhe/tfhe_generic_streams.h +include/tfhe/tfhe_generic_templates.h +include/tfhe/tfhe_io.h +include/tfhe/tgsw.h +include/tfhe/tgsw_functions.h +include/tfhe/tlwe.h +include/tfhe/tlwe_functions.h +lib/libtfhe-nayuki-avx.so +lib/libtfhe-nayuki-portable.so +lib/libtfhe-spqlios-avx.so +lib/libtfhe-spqlios-fma.so
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201910110338.x9B3cAb9020129>