diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2026-11-03 20:49:54 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2026-11-04 15:13:07 +0000 |
| commit | 52550c4e793aaa2922820a39351078b838090945 (patch) | |
| tree | f33436d9c5f03e21089578d0c7452a67b3f7c580 | |
| parent | 516d1884b403025393e9e71084fc8572e243294c (diff) | |
security/openfhe: update 1.5.1 → 1.6.1
| -rw-r--r-- | security/openfhe/Makefile | 9 | ||||
| -rw-r--r-- | security/openfhe/distinfo | 10 | ||||
| -rw-r--r-- | security/openfhe/files/patch-src_core_include_math_hal_intnat_ubintnat.h | 26 | ||||
| -rw-r--r-- | security/openfhe/pkg-plist | 24 |
4 files changed, 17 insertions, 52 deletions
diff --git a/security/openfhe/Makefile b/security/openfhe/Makefile index 2629edfe1560..3ebb6b299228 100644 --- a/security/openfhe/Makefile +++ b/security/openfhe/Makefile @@ -1,6 +1,6 @@ PORTNAME= openfhe DISTVERSIONPREFIX= v -DISTVERSION= 1.5.1 +DISTVERSION= 1.6.1 CATEGORIES= security math MAINTAINER= yuri@FreeBSD.org @@ -24,7 +24,7 @@ USE_GITHUB= yes GH_ACCOUNT= openfheorg GH_PROJECT= openfhe-development GH_TUPLE= openfheorg:cereal:984e3f1:cereal/third-party/cereal \ - google:googletest:8b4817e:google_test/third-party/google-test + google:googletest:52eb810:google_test/third-party/google-test LDFLAGS+= -pthread @@ -53,9 +53,6 @@ OPTIONS_DEFAULT+= OPENMP OPENMP_BROKEN= OpenMP isn't enabled on this architecture .endif -post-install: - @${RM} ${STAGEDIR}${PREFIX}/include/openfhe/core/math/hal/intnat/ubintnat.h.orig - -# tests as of 1.5.1: End 78 cases 78 passed 0 failed +# tests as of 1.6.1: End 78 cases 78 passed 0 failed .include <bsd.port.mk> diff --git a/security/openfhe/distinfo b/security/openfhe/distinfo index b2e932e827a8..6acd5ad8a445 100644 --- a/security/openfhe/distinfo +++ b/security/openfhe/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1780000279 -SHA256 (openfheorg-openfhe-development-v1.5.1_GH0.tar.gz) = 9a5a42b88263b54212d7aa751635d60d835d9800363bfdff02de280a9079b8f9 -SIZE (openfheorg-openfhe-development-v1.5.1_GH0.tar.gz) = 2186596 +TIMESTAMP = 1793412708 +SHA256 (openfheorg-openfhe-development-v1.6.1_GH0.tar.gz) = f350f1be92415717dcde9efd460c4bcc6762a95d1b60b6c300a2783f19cc4896 +SIZE (openfheorg-openfhe-development-v1.6.1_GH0.tar.gz) = 2422414 SHA256 (openfheorg-cereal-984e3f1_GH0.tar.gz) = d79d6b97a53c1adb67a001d3b85a3f7396131bfefb09a64b6ea78fa5a17c5fc5 SIZE (openfheorg-cereal-984e3f1_GH0.tar.gz) = 386502 -SHA256 (google-googletest-8b4817e_GH0.tar.gz) = 2707e4eecfb7ab19678c435e469c500e253c85236fc6a78e9fb5cb166f4d88d2 -SIZE (google-googletest-8b4817e_GH0.tar.gz) = 873421 +SHA256 (google-googletest-52eb810_GH0.tar.gz) = 80531feac7856fda42b659c0dbbb4de017704319f9071ea3cc167dcf0df17249 +SIZE (google-googletest-52eb810_GH0.tar.gz) = 885628 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 deleted file mode 100644 index a07d0d338da7..000000000000 --- a/security/openfhe/files/patch-src_core_include_math_hal_intnat_ubintnat.h +++ /dev/null @@ -1,26 +0,0 @@ ---- src/core/include/math/hal/intnat/ubintnat.h.orig 2024-03-05 00:18:51 UTC -+++ src/core/include/math/hal/intnat/ubintnat.h -@@ -1919,6 +1919,11 @@ class NativeIntegerT final : public lbcrypto::BigInteg - uint128_t c{static_cast<uint128_t>(a) * b}; - res.hi = static_cast<uint64_t>(c >> 64); - res.lo = static_cast<uint64_t>(c); -+#elif __riscv -+ U128BITS wres(0), wa(a), wb(b); -+ wres = wa * wb; -+ res.hi = (uint64_t)(wres >> 64); -+ res.lo = (uint64_t)wres; - #elif defined(__EMSCRIPTEN__) // web assembly - uint64_t a1 = a >> 32; - uint64_t a2 = (uint32_t)a; -@@ -1957,6 +1962,11 @@ 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; -+#elif defined(__powerpc64__) || defined(__riscv) -+ U128BITS wres(0), wa(a), wb(b); -+ 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 - uint64_t wres(0), wa(a), wb(b); - wres = wa * wb; diff --git a/security/openfhe/pkg-plist b/security/openfhe/pkg-plist index 40cd1a29aa78..617b7373b733 100644 --- a/security/openfhe/pkg-plist +++ b/security/openfhe/pkg-plist @@ -11,16 +11,19 @@ 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-keyswitchkey32.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-common.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-acckey32.h include/openfhe/binfhe/rgsw-cryptoparameters.h include/openfhe/binfhe/rgsw-evalkey.h include/openfhe/binfhe/rlwe-ciphertext.h @@ -182,6 +185,7 @@ include/openfhe/core/math/hermite.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-utils.h include/openfhe/core/math/matrix.h include/openfhe/core/math/matrixstrassen-impl.h include/openfhe/core/math/matrixstrassen.h @@ -192,20 +196,10 @@ include/openfhe/core/math/ternaryuniformgenerator.h include/openfhe/core/openfhecore.h include/openfhe/core/testdefs.h include/openfhe/core/utils/README.md -include/openfhe/core/utils/blockAllocator/README.md -include/openfhe/core/utils/blockAllocator/blockAllocator.h -include/openfhe/core/utils/blockAllocator/stl_allocator.h -include/openfhe/core/utils/blockAllocator/xallocator.h -include/openfhe/core/utils/blockAllocator/xlist.h -include/openfhe/core/utils/blockAllocator/xmap.h -include/openfhe/core/utils/blockAllocator/xqueue.h -include/openfhe/core/utils/blockAllocator/xset.h -include/openfhe/core/utils/blockAllocator/xsstream.h -include/openfhe/core/utils/blockAllocator/xstring.h -include/openfhe/core/utils/blockAllocator/xvector.h include/openfhe/core/utils/caller_info.h include/openfhe/core/utils/debug.h include/openfhe/core/utils/demangle.h +include/openfhe/core/utils/diagnostic_output.h include/openfhe/core/utils/exception.h include/openfhe/core/utils/get-call-stack.h include/openfhe/core/utils/hashutil.h @@ -354,14 +348,14 @@ include/openfhe/pke/unittest/utils/UnitTestUtils.h include/openfhe/pke/unittest/utils/schemeswitching-data-serializer.h lib/OpenFHE/OpenFHEConfig.cmake lib/OpenFHE/OpenFHEConfigVersion.cmake -lib/OpenFHE/OpenFHETargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/OpenFHE/OpenFHETargets-release.cmake lib/OpenFHE/OpenFHETargets.cmake lib/libOPENFHEbinfhe.so lib/libOPENFHEbinfhe.so.1 -lib/libOPENFHEbinfhe.so.1.5.1 +lib/libOPENFHEbinfhe.so.1.6.1 lib/libOPENFHEcore.so lib/libOPENFHEcore.so.1 -lib/libOPENFHEcore.so.1.5.1 +lib/libOPENFHEcore.so.1.6.1 lib/libOPENFHEpke.so lib/libOPENFHEpke.so.1 -lib/libOPENFHEpke.so.1.5.1 +lib/libOPENFHEpke.so.1.6.1 |
