git: 8f94e4aaec0d - main - security/openfhe: update 1.0.4 → 1.1.2

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 17 Dec 2023 07:17:11 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8f94e4aaec0dbc90d3eb8a58e2029002895bae84

commit 8f94e4aaec0dbc90d3eb8a58e2029002895bae84
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-12-17 07:16:56 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-12-17 07:17:07 +0000

    security/openfhe: update 1.0.4 → 1.1.2
    
    Reported by:    portscout
---
 security/openfhe/Makefile                          |  2 +-
 security/openfhe/distinfo                          |  6 +-
 ...tch-src_core_include_math_hal_intnat_ubintnat.h | 11 ++--
 security/openfhe/pkg-plist                         | 67 +++++++++++++++-------
 4 files changed, 56 insertions(+), 30 deletions(-)

diff --git a/security/openfhe/Makefile b/security/openfhe/Makefile
index bf28990bbf8a..4182b169afca 100644
--- a/security/openfhe/Makefile
+++ b/security/openfhe/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	openfhe
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.0.4
+DISTVERSION=	1.1.2
 CATEGORIES=	security math
 
 MAINTAINER=	yuri@FreeBSD.org
diff --git a/security/openfhe/distinfo b/security/openfhe/distinfo
index 1e754a33c0c1..54f74b804da4 100644
--- a/security/openfhe/distinfo
+++ b/security/openfhe/distinfo
@@ -1,6 +1,6 @@
-TIMESTAMP = 1687243053
-SHA256 (openfheorg-openfhe-development-v1.0.4_GH0.tar.gz) = 29ac6c0b95d5544eb53ebbae7583f3f2701c4c3db9084944a4adb033aed533b7
-SIZE (openfheorg-openfhe-development-v1.0.4_GH0.tar.gz) = 1905267
+TIMESTAMP = 1702792636
+SHA256 (openfheorg-openfhe-development-v1.1.2_GH0.tar.gz) = f728f040e33a3a4ecc8d08de66433882d157eb63870122e58240b825d57af707
+SIZE (openfheorg-openfhe-development-v1.1.2_GH0.tar.gz) = 1987229
 SHA256 (openfheorg-cereal-984e3f1_GH0.tar.gz) = d79d6b97a53c1adb67a001d3b85a3f7396131bfefb09a64b6ea78fa5a17c5fc5
 SIZE (openfheorg-cereal-984e3f1_GH0.tar.gz) = 386502
 SHA256 (google-googletest-8b4817e_GH0.tar.gz) = 2707e4eecfb7ab19678c435e469c500e253c85236fc6a78e9fb5cb166f4d88d2
diff --git a/security/openfhe/files/patch-src_core_include_math_hal_intnat_ubintnat.h b/security/openfhe/files/patch-src_core_include_math_hal_intnat_ubintnat.h
index 80ef4c33431c..cd99c0741a09 100644
--- a/security/openfhe/files/patch-src_core_include_math_hal_intnat_ubintnat.h
+++ b/security/openfhe/files/patch-src_core_include_math_hal_intnat_ubintnat.h
@@ -1,6 +1,6 @@
---- src/core/include/math/hal/intnat/ubintnat.h.orig	2022-12-06 03:29:13 UTC
+--- src/core/include/math/hal/intnat/ubintnat.h.orig	2023-12-16 19:03:47 UTC
 +++ src/core/include/math/hal/intnat/ubintnat.h
-@@ -2152,17 +2152,17 @@ class NativeIntegerT : public lbcrypto::BigIntegerInte
+@@ -1935,16 +1935,16 @@ class NativeIntegerT final : public lbcrypto::BigInteg
          res.lo = x.lo * y;
          asm("umulh %0, %1, %2\n\t" : "=r"(res.hi) : "r"(x.lo), "r"(y));
          res.hi += x.hi * y;
@@ -10,15 +10,14 @@
 +        wres   = wa * wb;  // should give us 128 bits  of 64 * 64
 +        res.hi = (uint64_t)(wres >> 64);
 +        res.lo = (uint64_t)wres;
-+#elif defined(__arm__)  || defined(__powerpc__) // 32 bit processor
++#elif defined(__arm__) || defined(__powerpc__) // 32 bit processor
          uint64_t wres(0), wa(a), wb(b);
- 
-         wres   = wa * wb;  // should give us the lower 64 bits of 32*32
+         wres   = wa * wb;
          res.hi = wres >> 32;
          res.lo = (uint32_t)wres & 0xFFFFFFFF;
 -#elif __riscv
 -        U128BITS wres(0), wa(a), wb(b);
--        wres   = wa * wb;  // should give us 128 bits  of 64 * 64
+-        wres   = wa * wb;
 -        res.hi = (uint64_t)(wres >> 64);
 -        res.lo = (uint64_t)wres;
  #elif defined(__EMSCRIPTEN__)  // web assembly
diff --git a/security/openfhe/pkg-plist b/security/openfhe/pkg-plist
index 043fa8ed6664..05b65ed440bd 100644
--- a/security/openfhe/pkg-plist
+++ b/security/openfhe/pkg-plist
@@ -7,13 +7,18 @@ include/openfhe/binfhe/binfhecontext.h
 include/openfhe/binfhe/lwe-ciphertext-fwd.h
 include/openfhe/binfhe/lwe-ciphertext.h
 include/openfhe/binfhe/lwe-cryptoparameters.h
+include/openfhe/binfhe/lwe-keypair-fwd.h
+include/openfhe/binfhe/lwe-keypair.h
 include/openfhe/binfhe/lwe-keyswitchkey-fwd.h
 include/openfhe/binfhe/lwe-keyswitchkey.h
 include/openfhe/binfhe/lwe-pke.h
 include/openfhe/binfhe/lwe-privatekey-fwd.h
 include/openfhe/binfhe/lwe-privatekey.h
+include/openfhe/binfhe/lwe-publickey-fwd.h
+include/openfhe/binfhe/lwe-publickey.h
 include/openfhe/binfhe/rgsw-acc-cggi.h
 include/openfhe/binfhe/rgsw-acc-dm.h
+include/openfhe/binfhe/rgsw-acc-lmkcdey.h
 include/openfhe/binfhe/rgsw-acc.h
 include/openfhe/binfhe/rgsw-acckey.h
 include/openfhe/binfhe/rgsw-cryptoparameters.h
@@ -112,33 +117,42 @@ include/openfhe/cereal/version.hpp
 include/openfhe/core/README.md
 include/openfhe/core/config_core.h
 include/openfhe/core/lattice/README.md
+include/openfhe/core/lattice/constants-lattice.h
+include/openfhe/core/lattice/dgsampling-impl.h
 include/openfhe/core/lattice/dgsampling.h
-include/openfhe/core/lattice/elemparamfactory.h
-include/openfhe/core/lattice/elemparams.h
+include/openfhe/core/lattice/field2n-impl.h
 include/openfhe/core/lattice/field2n.h
 include/openfhe/core/lattice/hal/README.md
 include/openfhe/core/lattice/hal/dcrtpoly-interface.h
+include/openfhe/core/lattice/hal/default/dcrtpoly-impl.h
 include/openfhe/core/lattice/hal/default/dcrtpoly.h
-include/openfhe/core/lattice/hal/default/lat-backend-default.h
-include/openfhe/core/lattice/ildcrtparams.h
+include/openfhe/core/lattice/hal/default/ildcrtparams.h
+include/openfhe/core/lattice/hal/default/ilparams.h
+include/openfhe/core/lattice/hal/default/poly-impl.h
+include/openfhe/core/lattice/hal/default/poly.h
+include/openfhe/core/lattice/hal/elemparams.h
+include/openfhe/core/lattice/hal/lat-backend.h
+include/openfhe/core/lattice/hal/poly-interface.h
 include/openfhe/core/lattice/ilelement.h
-include/openfhe/core/lattice/ilparams.h
 include/openfhe/core/lattice/lat-hal.h
-include/openfhe/core/lattice/poly.h
+include/openfhe/core/lattice/matrix-lattice-impl.h
 include/openfhe/core/lattice/stdlatticeparms.h
+include/openfhe/core/lattice/trapdoor-impl.h
 include/openfhe/core/lattice/trapdoor.h
 include/openfhe/core/lattice/trapdoorparameters.h
 include/openfhe/core/math/README.md
 include/openfhe/core/math/SAMPLING_README.md
+include/openfhe/core/math/binaryuniformgenerator-impl.h
 include/openfhe/core/math/binaryuniformgenerator.h
 include/openfhe/core/math/chebyshev.h
 include/openfhe/core/math/dftransform.h
+include/openfhe/core/math/discretegaussiangenerator-impl.h
 include/openfhe/core/math/discretegaussiangenerator.h
 include/openfhe/core/math/discretegaussiangeneratorgeneric.h
+include/openfhe/core/math/discreteuniformgenerator-impl.h
 include/openfhe/core/math/discreteuniformgenerator.h
 include/openfhe/core/math/distrgen.h
 include/openfhe/core/math/distributiongenerator.h
-include/openfhe/core/math/hal.h
 include/openfhe/core/math/hal/basicint.h
 include/openfhe/core/math/hal/bigintbackend.h
 include/openfhe/core/math/hal/bigintdyn/backenddyn.h
@@ -157,7 +171,6 @@ include/openfhe/core/math/hal/bigintntl/transformntl-impl.h
 include/openfhe/core/math/hal/bigintntl/transformntl.h
 include/openfhe/core/math/hal/bigintntl/ubintntl.h
 include/openfhe/core/math/hal/integer.h
-include/openfhe/core/math/hal/intnat/backendnat.h
 include/openfhe/core/math/hal/intnat/mubintvecnat.h
 include/openfhe/core/math/hal/intnat/transformnat-impl.h
 include/openfhe/core/math/hal/intnat/transformnat.h
@@ -165,10 +178,15 @@ include/openfhe/core/math/hal/intnat/ubintnat.h
 include/openfhe/core/math/hal/nativeintbackend.h
 include/openfhe/core/math/hal/transform.h
 include/openfhe/core/math/hal/vector.h
+include/openfhe/core/math/math-hal.h
 include/openfhe/core/math/math_backends.md
+include/openfhe/core/math/matrix-impl.h
 include/openfhe/core/math/matrix.h
+include/openfhe/core/math/matrixstrassen-impl.h
 include/openfhe/core/math/matrixstrassen.h
+include/openfhe/core/math/nbtheory-impl.h
 include/openfhe/core/math/nbtheory.h
+include/openfhe/core/math/ternaryuniformgenerator-impl.h
 include/openfhe/core/math/ternaryuniformgenerator.h
 include/openfhe/core/openfhecore.h
 include/openfhe/core/testdefs.h
@@ -188,12 +206,12 @@ include/openfhe/core/utils/caller_info.h
 include/openfhe/core/utils/debug.h
 include/openfhe/core/utils/demangle.h
 include/openfhe/core/utils/exception.h
+include/openfhe/core/utils/get-call-stack.h
 include/openfhe/core/utils/hashutil.h
 include/openfhe/core/utils/inttypes.h
 include/openfhe/core/utils/memory.h
 include/openfhe/core/utils/openfhebase64.h
 include/openfhe/core/utils/parallel.h
-include/openfhe/core/utils/parmfactory.h
 include/openfhe/core/utils/prng/CPPLINT.cfg
 include/openfhe/core/utils/prng/README.md
 include/openfhe/core/utils/prng/blake2-impl.h
@@ -259,9 +277,9 @@ include/openfhe/pke/scheme/bfvrns/bfvrns-pke.h
 include/openfhe/pke/scheme/bfvrns/bfvrns-pre.h
 include/openfhe/pke/scheme/bfvrns/bfvrns-scheme.h
 include/openfhe/pke/scheme/bfvrns/bfvrns-ser.h
-include/openfhe/pke/scheme/bfvrns/cryptocontext-bfvrns.h
-include/openfhe/pke/scheme/bfvrns/cryptocontextparams-bfvrns.h
 include/openfhe/pke/scheme/bfvrns/gen-cryptocontext-bfvrns-internal.h
+include/openfhe/pke/scheme/bfvrns/gen-cryptocontext-bfvrns-params.h
+include/openfhe/pke/scheme/bfvrns/gen-cryptocontext-bfvrns.h
 include/openfhe/pke/scheme/bgvrns/bgvrns-advancedshe.h
 include/openfhe/pke/scheme/bgvrns/bgvrns-cryptoparameters.h
 include/openfhe/pke/scheme/bgvrns/bgvrns-fhe.h
@@ -272,9 +290,9 @@ include/openfhe/pke/scheme/bgvrns/bgvrns-pke.h
 include/openfhe/pke/scheme/bgvrns/bgvrns-pre.h
 include/openfhe/pke/scheme/bgvrns/bgvrns-scheme.h
 include/openfhe/pke/scheme/bgvrns/bgvrns-ser.h
-include/openfhe/pke/scheme/bgvrns/cryptocontext-bgvrns.h
-include/openfhe/pke/scheme/bgvrns/cryptocontextparams-bgvrns.h
 include/openfhe/pke/scheme/bgvrns/gen-cryptocontext-bgvrns-internal.h
+include/openfhe/pke/scheme/bgvrns/gen-cryptocontext-bgvrns-params.h
+include/openfhe/pke/scheme/bgvrns/gen-cryptocontext-bgvrns.h
 include/openfhe/pke/scheme/ckksrns/README.md
 include/openfhe/pke/scheme/ckksrns/ckksrns-advancedshe.h
 include/openfhe/pke/scheme/ckksrns/ckksrns-cryptoparameters.h
@@ -285,13 +303,14 @@ include/openfhe/pke/scheme/ckksrns/ckksrns-parametergeneration.h
 include/openfhe/pke/scheme/ckksrns/ckksrns-pke.h
 include/openfhe/pke/scheme/ckksrns/ckksrns-pre.h
 include/openfhe/pke/scheme/ckksrns/ckksrns-scheme.h
+include/openfhe/pke/scheme/ckksrns/ckksrns-schemeswitching.h
 include/openfhe/pke/scheme/ckksrns/ckksrns-ser.h
 include/openfhe/pke/scheme/ckksrns/ckksrns-utils.h
-include/openfhe/pke/scheme/ckksrns/cryptocontext-ckksrns.h
-include/openfhe/pke/scheme/ckksrns/cryptocontextparams-ckksrns.h
 include/openfhe/pke/scheme/ckksrns/gen-cryptocontext-ckksrns-internal.h
-include/openfhe/pke/scheme/cryptocontextparams-base.h
-include/openfhe/pke/scheme/cryptocontextparams-defaults.h
+include/openfhe/pke/scheme/ckksrns/gen-cryptocontext-ckksrns-params.h
+include/openfhe/pke/scheme/ckksrns/gen-cryptocontext-ckksrns.h
+include/openfhe/pke/scheme/gen-cryptocontext-params-defaults.h
+include/openfhe/pke/scheme/gen-cryptocontext-params.h
 include/openfhe/pke/scheme/scheme-id.h
 include/openfhe/pke/scheme/scheme-utils.h
 include/openfhe/pke/schemebase/base-advancedshe.h
@@ -316,16 +335,24 @@ include/openfhe/pke/schemerns/rns-pke.h
 include/openfhe/pke/schemerns/rns-pre.h
 include/openfhe/pke/schemerns/rns-scheme.h
 include/openfhe/pke/schemerns/rns-ser.h
+include/openfhe/pke/unittest/utils/BaseTestCase.h
+include/openfhe/pke/unittest/utils/UnitTestCCParams.h
+include/openfhe/pke/unittest/utils/UnitTestCryptoContext.h
+include/openfhe/pke/unittest/utils/UnitTestMetadataTest.h
+include/openfhe/pke/unittest/utils/UnitTestMetadataTestSer.h
+include/openfhe/pke/unittest/utils/UnitTestReadCSVData.h
+include/openfhe/pke/unittest/utils/UnitTestSer.h
+include/openfhe/pke/unittest/utils/UnitTestUtils.h
 lib/OpenFHE/OpenFHEConfig.cmake
 lib/OpenFHE/OpenFHEConfigVersion.cmake
 lib/OpenFHE/OpenFHETargets-%%CMAKE_BUILD_TYPE%%.cmake
 lib/OpenFHE/OpenFHETargets.cmake
 lib/libOPENFHEbinfhe.so
 lib/libOPENFHEbinfhe.so.1
-lib/libOPENFHEbinfhe.so.1.0.4
+lib/libOPENFHEbinfhe.so.1.1.2
 lib/libOPENFHEcore.so
 lib/libOPENFHEcore.so.1
-lib/libOPENFHEcore.so.1.0.4
+lib/libOPENFHEcore.so.1.1.2
 lib/libOPENFHEpke.so
 lib/libOPENFHEpke.so.1
-lib/libOPENFHEpke.so.1.0.4
+lib/libOPENFHEpke.so.1.1.2