From owner-svn-ports-all@freebsd.org Thu Jan 16 05:49:25 2020 Return-Path: Delivered-To: svn-ports-all@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 90C7F22A155; Thu, 16 Jan 2020 05:49:25 +0000 (UTC) (envelope-from yuri@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47ytYd3357z4V7w; Thu, 16 Jan 2020 05:49:25 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5EB831AAEE; Thu, 16 Jan 2020 05:49:25 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 00G5nPWN070258; Thu, 16 Jan 2020 05:49:25 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 00G5nOAk070249; Thu, 16 Jan 2020 05:49:24 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202001160549.00G5nOAk070249@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Thu, 16 Jan 2020 05:49:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r523202 - in head/security: . helib helib/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/security: . helib helib/files X-SVN-Commit-Revision: 523202 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jan 2020 05:49:25 -0000 Author: yuri Date: Thu Jan 16 05:49:23 2020 New Revision: 523202 URL: https://svnweb.freebsd.org/changeset/ports/523202 Log: New port: security/helib: Implementation of homomorphic encryption Added: head/security/helib/ head/security/helib/Makefile (contents, props changed) head/security/helib/distinfo (contents, props changed) head/security/helib/files/ head/security/helib/files/patch-src_timing.cpp (contents, props changed) head/security/helib/pkg-descr (contents, props changed) head/security/helib/pkg-plist (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Thu Jan 16 05:06:18 2020 (r523201) +++ head/security/Makefile Thu Jan 16 05:49:23 2020 (r523202) @@ -209,6 +209,7 @@ SUBDIR += hashcat SUBDIR += hashcat-legacy SUBDIR += heimdal + SUBDIR += helib SUBDIR += highwayhash SUBDIR += hitch SUBDIR += hlfl Added: head/security/helib/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/helib/Makefile Thu Jan 16 05:49:23 2020 (r523202) @@ -0,0 +1,25 @@ +# $FreeBSD$ + +PORTNAME= helib +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.0 +CATEGORIES= security + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Implementation of homomorphic encryption + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libgmp.so:math/gmp \ + libntl.so:math/ntl + +USES= cmake compiler:c++14-lang +USE_GITHUB= yes +GH_ACCOUNT= homenc +GH_PROJECT= HElib +USE_LDCONFIG= yes + +CMAKE_ON= BUILD_SHARED + +.include Added: head/security/helib/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/helib/distinfo Thu Jan 16 05:49:23 2020 (r523202) @@ -0,0 +1,3 @@ +TIMESTAMP = 1579152871 +SHA256 (homenc-HElib-v1.0.0_GH0.tar.gz) = 5b917a6ba1555be580db4c102a339abe124c284007f0044d637892ec85877214 +SIZE (homenc-HElib-v1.0.0_GH0.tar.gz) = 1564901 Added: head/security/helib/files/patch-src_timing.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/helib/files/patch-src_timing.cpp Thu Jan 16 05:49:23 2020 (r523202) @@ -0,0 +1,11 @@ +--- src/timing.cpp.orig 2020-01-16 05:36:23 UTC ++++ src/timing.cpp +@@ -23,7 +23,7 @@ unsigned long GetTimerClock() + timespec ts; + + +- clock_gettime(CLOCK_MONOTONIC_RAW, &ts); ++ clock_gettime(CLOCK_MONOTONIC, &ts); + //clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts); + //clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); + Added: head/security/helib/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/helib/pkg-descr Thu Jan 16 05:49:23 2020 (r523202) @@ -0,0 +1,10 @@ +HElib is a software library that implements homomorphic encryption (HE). +Currently available schemes are the implementations of the +Brakerski-Gentry-Vaikuntanathan (BGV) scheme with bootstrapping and the +Approximate Number scheme of Cheon-Kim-Kim-Song (CKKS), along with many +optimizations to make homomorphic evaluation run faster, focusing mostly +on effective use of the Smart-Vercauteren ciphertext packing techniques +and the Gentry-Halevi-Smart optimizations. See this report for a +description of a few of the algorithms using in this library. + +WWW: https://github.com/homenc/HElib Added: head/security/helib/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/helib/pkg-plist Thu Jan 16 05:49:23 2020 (r523202) @@ -0,0 +1,55 @@ +include/helib/ArgMap.h +include/helib/CModulus.h +include/helib/Context.h +include/helib/CtPtrs.h +include/helib/Ctxt.h +include/helib/DoubleCRT.h +include/helib/EncryptedArray.h +include/helib/EvalMap.h +include/helib/FHE.h +include/helib/IndexMap.h +include/helib/IndexSet.h +include/helib/NumbTh.h +include/helib/PAlgebra.h +include/helib/PGFFT.h +include/helib/PolyMod.h +include/helib/PolyModRing.h +include/helib/PtrMatrix.h +include/helib/PtrVector.h +include/helib/Ptxt.h +include/helib/assertions.h +include/helib/binaryArith.h +include/helib/binaryCompare.h +include/helib/binio.h +include/helib/bluestein.h +include/helib/clonedPtr.h +include/helib/debugging.h +include/helib/exceptions.h +include/helib/fhe_stats.h +include/helib/helib.h +include/helib/hypercube.h +include/helib/intraSlot.h +include/helib/keySwitching.h +include/helib/keys.h +include/helib/matching.h +include/helib/matmul.h +include/helib/multicore.h +include/helib/norms.h +include/helib/permutations.h +include/helib/polyEval.h +include/helib/powerful.h +include/helib/primeChain.h +include/helib/randomMatrices.h +include/helib/range.h +include/helib/recryption.h +include/helib/replicate.h +include/helib/sample.h +include/helib/tableLookup.h +include/helib/timing.h +include/helib/zzX.h +lib/libhelib.so +lib/libhelib.so.1.0.0 +share/cmake/helib/helibConfig.cmake +share/cmake/helib/helibConfigVersion.cmake +share/cmake/helib/helibTargets-%%CMAKE_BUILD_TYPE%%.cmake +share/cmake/helib/helibTargets.cmake