forked from Lainports/freebsd-ports
security/openfhe: update 1.1.2 → 1.1.3
Reported by: portscout
This commit is contained in:
parent
7443ec936c
commit
76c97e7c96
4 changed files with 33 additions and 30 deletions
|
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= openfhe
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.1.2
|
||||
DISTVERSION= 1.1.3
|
||||
CATEGORIES= security math
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
TIMESTAMP = 1702792636
|
||||
SHA256 (openfheorg-openfhe-development-v1.1.2_GH0.tar.gz) = f728f040e33a3a4ecc8d08de66433882d157eb63870122e58240b825d57af707
|
||||
SIZE (openfheorg-openfhe-development-v1.1.2_GH0.tar.gz) = 1987229
|
||||
TIMESTAMP = 1709795933
|
||||
SHA256 (openfheorg-openfhe-development-v1.1.3_GH0.tar.gz) = 33fd5cd5936c0f967187969572614af186b99a41db1a0474dbbedd9d1234a2d2
|
||||
SIZE (openfheorg-openfhe-development-v1.1.3_GH0.tar.gz) = 1994424
|
||||
SHA256 (openfheorg-cereal-984e3f1_GH0.tar.gz) = d79d6b97a53c1adb67a001d3b85a3f7396131bfefb09a64b6ea78fa5a17c5fc5
|
||||
SIZE (openfheorg-cereal-984e3f1_GH0.tar.gz) = 386502
|
||||
SHA256 (google-googletest-8b4817e_GH0.tar.gz) = 2707e4eecfb7ab19678c435e469c500e253c85236fc6a78e9fb5cb166f4d88d2
|
||||
|
|
|
|||
|
|
@ -1,25 +1,26 @@
|
|||
--- src/core/include/math/hal/intnat/ubintnat.h.orig 2023-12-16 19:03:47 UTC
|
||||
--- src/core/include/math/hal/intnat/ubintnat.h.orig 2024-03-05 00:18:51 UTC
|
||||
+++ src/core/include/math/hal/intnat/ubintnat.h
|
||||
@@ -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;
|
||||
-#elif defined(__arm__) // 32 bit processor
|
||||
+#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;
|
||||
res.hi = wres >> 32;
|
||||
res.lo = (uint32_t)wres & 0xFFFFFFFF;
|
||||
-#elif __riscv
|
||||
- U128BITS wres(0), wa(a), wb(b);
|
||||
- wres = wa * wb;
|
||||
- res.hi = (uint64_t)(wres >> 64);
|
||||
- res.lo = (uint64_t)wres;
|
||||
@@ -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
|
||||
U64BITS a1 = a >> 32;
|
||||
U64BITS a2 = (uint32_t)a;
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -309,9 +309,11 @@ include/openfhe/pke/scheme/ckksrns/ckksrns-utils.h
|
|||
include/openfhe/pke/scheme/ckksrns/gen-cryptocontext-ckksrns-internal.h
|
||||
include/openfhe/pke/scheme/ckksrns/gen-cryptocontext-ckksrns-params.h
|
||||
include/openfhe/pke/scheme/ckksrns/gen-cryptocontext-ckksrns.h
|
||||
include/openfhe/pke/scheme/ckksrns/schemeswitching-data-serializer.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-swch-params.h
|
||||
include/openfhe/pke/scheme/scheme-utils.h
|
||||
include/openfhe/pke/schemebase/base-advancedshe.h
|
||||
include/openfhe/pke/schemebase/base-cryptoparameters.h
|
||||
|
|
@ -349,10 +351,10 @@ lib/OpenFHE/OpenFHETargets-%%CMAKE_BUILD_TYPE%%.cmake
|
|||
lib/OpenFHE/OpenFHETargets.cmake
|
||||
lib/libOPENFHEbinfhe.so
|
||||
lib/libOPENFHEbinfhe.so.1
|
||||
lib/libOPENFHEbinfhe.so.1.1.2
|
||||
lib/libOPENFHEbinfhe.so.1.1.3
|
||||
lib/libOPENFHEcore.so
|
||||
lib/libOPENFHEcore.so.1
|
||||
lib/libOPENFHEcore.so.1.1.2
|
||||
lib/libOPENFHEcore.so.1.1.3
|
||||
lib/libOPENFHEpke.so
|
||||
lib/libOPENFHEpke.so.1
|
||||
lib/libOPENFHEpke.so.1.1.2
|
||||
lib/libOPENFHEpke.so.1.1.3
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue