# \#questions

**URL:** https://openfhe.discourse.group/tag/questions/10.md?match_all_tags=true&page=1&tags%5B%5D=questions

[Latest](https://openfhe.discourse.group/latest.md) · [Categories](https://openfhe.discourse.group/categories.md) · [Tags](https://openfhe.discourse.group/tags.md)

**Page:** 2

---

## [Memory Allocation Failure During Bootstrapping with Large Ring Dimensions in FHE](https://openfhe.discourse.group/t/memory-allocation-failure-during-bootstrapping-with-large-ring-dimensions-in-fhe/2039)

<div class="topic-metadata">

**Author:** [@OmarElgebali](https://openfhe.discourse.group/u/OmarElgebali)\
**Replies:** 9\
**Last updated:** [July 12, 2025, 4:16pm UTC](https://openfhe.discourse.group/t/memory-allocation-failure-during-bootstrapping-with-large-ring-dimensions-in-fhe/2039 "2025-07-12T16:16:11Z")

</div>

I’m encountering an issue when attempting to run bootstrapping on large ring dimensions and batch sizes. Specifically, when using a level budget of \[1,1\], a ring dimension of 2^16, and a batch size of 2^14, the process …

---

## [Is there any toolchain available to automatically convert ML model into OpenFHE APIs?](https://openfhe.discourse.group/t/is-there-any-toolchain-available-to-automatically-convert-ml-model-into-openfhe-apis/2049)

<div class="topic-metadata">

**Author:** [@JianmingTong](https://openfhe.discourse.group/u/JianmingTong)\
**Replies:** 2\
**Last updated:** [June 9, 2025, 4:36pm UTC](https://openfhe.discourse.group/t/is-there-any-toolchain-available-to-automatically-convert-ml-model-into-openfhe-apis/2049 "2025-06-09T16:36:02Z")

</div>

Is there any toolchain available and fully functional to automatically convert a LeNet model into OpenFHE rnsCKKS APIs?

---

## [Integrating FPGA Accelerator into OpenFHE](https://openfhe.discourse.group/t/integrating-fpga-accelerator-into-openfhe/1604)

<div class="topic-metadata">

**Author:** [@B1ankScript](https://openfhe.discourse.group/u/B1ankScript)\
**Replies:** 1\
**Last updated:** [June 6, 2025, 7:29pm UTC](https://openfhe.discourse.group/t/integrating-fpga-accelerator-into-openfhe/1604 "2025-06-06T19:29:55Z")

</div>

Hello, I want to create a CPU-FPGA heterogeneous FHE accelerator now. The CPU and FPGA are connected using PCIe, and the host uses Xilinx OpenCL to interact with Xilinx Alveo U280 FPGA. I want to write HLS kernel functi…

---

## [Manually increasing Ring Dimension in BFV](https://openfhe.discourse.group/t/manually-increasing-ring-dimension-in-bfv/1978)

<div class="topic-metadata">

**Author:** [@g\_tasop](https://openfhe.discourse.group/u/g_tasop)\
**Replies:** 4\
**Last updated:** [June 6, 2025, 12:33pm UTC](https://openfhe.discourse.group/t/manually-increasing-ring-dimension-in-bfv/1978 "2025-06-06T12:33:50Z")

</div>

I have a simple program that uses BFV and for testing purposes I would like for a selected security level (e.g HEStd\_128\_classic) to increase the Ring Dimension. I can already do this with the snippet found below, but I …

---

## [Cannot pickle 'openfhe.Ciphertext' object](https://openfhe.discourse.group/t/cannot-pickle-openfhe-ciphertext-object/2042)

<div class="topic-metadata">

**Author:** [@g\_tasop](https://openfhe.discourse.group/u/g_tasop)\
**Replies:** 2\
**Last updated:** [June 3, 2025, 8:45am UTC](https://openfhe.discourse.group/t/cannot-pickle-openfhe-ciphertext-object/2042 "2025-06-03T08:45:32Z")

</div>

Hello, I am trying to use multiple processes to evaluate multiple ciphertexts in the same time, by using openfhe-python (version 1.3.0.0). To do so, I tried to implement a simple toy example with BFV by using the python …

---

## [Performing gate level operations after scheme switching](https://openfhe.discourse.group/t/performing-gate-level-operations-after-scheme-switching/2026)

<div class="topic-metadata">

**Author:** [@ballb](https://openfhe.discourse.group/u/ballb)\
**Replies:** 3\
**Last updated:** [May 14, 2025, 9:23am UTC](https://openfhe.discourse.group/t/performing-gate-level-operations-after-scheme-switching/2026 "2025-05-14T09:23:24Z")

</div>

Hello, I am currently discovering scheme switching, and I am getting some wrong results after performing AND in fhew… I added just extra vector, x3 and encoded and encrypted – ptxt3 and c3 – to the example scheme-switc…

---

## [How do I determine the optimal ring dimension?](https://openfhe.discourse.group/t/how-do-i-determine-the-optimal-ring-dimension/2020)

<div class="topic-metadata">

**Author:** [@kanjanarat](https://openfhe.discourse.group/u/kanjanarat)\
**Replies:** 1\
**Last updated:** [May 9, 2025, 12:49pm UTC](https://openfhe.discourse.group/t/how-do-i-determine-the-optimal-ring-dimension/2020 "2025-05-09T12:49:33Z")

</div>

Hi, I’m currently trying to select an appropriate ring dimension for my homomorphic encryption setup. From my understanding, higher ring dimensions lead to larger ciphertext sizes and increased computation time, but also…

---

## [Noise Estimation in OpenFHE](https://openfhe.discourse.group/t/noise-estimation-in-openfhe/2018)

<div class="topic-metadata">

**Author:** [@wowblk8](https://openfhe.discourse.group/u/wowblk8)\
**Replies:** 3\
**Last updated:** [May 8, 2025, 1:30am UTC](https://openfhe.discourse.group/t/noise-estimation-in-openfhe/2018 "2025-05-08T01:30:09Z")

</div>

Hi OpenFHE team! I saw code related to noise estimation for the CKKS and BFV modes in the library, but I couldn’t find any noise estimation code for the BGV scheme. I would like to know if there are any related function…

---

## [RLWE Parameter Setting in BFV Homomorphic Encryption](https://openfhe.discourse.group/t/rlwe-parameter-setting-in-bfv-homomorphic-encryption/1992)

<div class="topic-metadata">

**Author:** [@Atwo](https://openfhe.discourse.group/u/Atwo)\
**Replies:** 3\
**Last updated:** [April 17, 2025, 6:06pm UTC](https://openfhe.discourse.group/t/rlwe-parameter-setting-in-bfv-homomorphic-encryption/1992 "2025-04-17T18:06:34Z")

</div>

Hi Everyone, I am using src/pke/examples/simple-integers.cpp. I want to change the RLWE parameter setting for secret key (and some other RLWE parameters). Can you please let me know where should i do the changes. Shoul…

---

## [Switching Context of OpenFHE In and Out of memory in a large scale application](https://openfhe.discourse.group/t/switching-context-of-openfhe-in-and-out-of-memory-in-a-large-scale-application/1995)

<div class="topic-metadata">

**Author:** [@ngesbrian23](https://openfhe.discourse.group/u/ngesbrian23)\
**Replies:** 1\
**Last updated:** [April 17, 2025, 5:02pm UTC](https://openfhe.discourse.group/t/switching-context-of-openfhe-in-and-out-of-memory-in-a-large-scale-application/1995 "2025-04-17T17:02:36Z")

</div>

I am working on a project with OpenFHE that requires a large amount of rotation keys so I am looking for ways to reduce my memory usage by switching context of my program in and out of memory. I am using the the followin…

---

## [Trying to train a linear regression on encrypted data](https://openfhe.discourse.group/t/trying-to-train-a-linear-regression-on-encrypted-data/1971)

<div class="topic-metadata">

**Author:** [@daria](https://openfhe.discourse.group/u/daria)\
**Replies:** 2\
**Last updated:** [March 31, 2025, 2:27pm UTC](https://openfhe.discourse.group/t/trying-to-train-a-linear-regression-on-encrypted-data/1971 "2025-03-31T14:27:09Z")

</div>

Hi! I am trying to train a linear regression on encrypted data. I don’t understand what i do wrong. I can’t make the R^2 factor rise above 0.4. The best R^2 factor when training on clear data is 0.87. Could someone take …

---

## [About the BINFHE KeyGen and Decrypt](https://openfhe.discourse.group/t/about-the-binfhe-keygen-and-decrypt/1962)

<div class="topic-metadata">

**Author:** [@wowblk8](https://openfhe.discourse.group/u/wowblk8)\
**Replies:** 3\
**Last updated:** [March 28, 2025, 10:50pm UTC](https://openfhe.discourse.group/t/about-the-binfhe-keygen-and-decrypt/1962 "2025-03-28T22:50:25Z")

</div>

Hi OpenFHE team! I want to know if this operation is incorrect and if there should be a warning if it is wrong. In my code, the first parameter BinFHE::BTKeyGen uses the secret key generated by the second parameter, b…

---

## [InnerProduct question](https://openfhe.discourse.group/t/innerproduct-question/1966)

<div class="topic-metadata">

**Author:** [@wowblk8](https://openfhe.discourse.group/u/wowblk8)\
**Replies:** 2\
**Last updated:** [March 28, 2025, 12:50pm UTC](https://openfhe.discourse.group/t/innerproduct-question/1966 "2025-03-28T12:50:33Z")

</div>

Hi openfhe team! I would like to know how to determine whether my inner product operation is correct based on the given parameters, ensuring that the calculation results are accurate. Currently, with the given parameter…

---

## [How multiplicative depth is being calculated for any polynomial approximation?](https://openfhe.discourse.group/t/how-multiplicative-depth-is-being-calculated-for-any-polynomial-approximation/1964)

<div class="topic-metadata">

**Author:** [@Jason](https://openfhe.discourse.group/u/Jason)\
**Replies:** 1\
**Last updated:** [March 28, 2025, 7:46am UTC](https://openfhe.discourse.group/t/how-multiplicative-depth-is-being-calculated-for-any-polynomial-approximation/1964 "2025-03-28T07:46:32Z")

</div>

Q1) I am implementing comparison with help of polynomial approximations. If the degree of polynomial is 9 or 7, the M. depth will be 4 and if the degree of polynomial is 3,5, the M. depth will be 3. How EvalPoly function…

---

## [Proxy Reencryption: Make tranformation key public](https://openfhe.discourse.group/t/proxy-reencryption-make-tranformation-key-public/1947)

<div class="topic-metadata">

**Author:** [@bhavinmoriya](https://openfhe.discourse.group/u/bhavinmoriya)\
**Replies:** 4\
**Last updated:** [March 26, 2025, 8:05pm UTC](https://openfhe.discourse.group/t/proxy-reencryption-make-tranformation-key-public/1947 "2025-03-26T20:05:38Z")

</div>

Hi, Does making transformation key (meaning reencryption key) public raises any risk of revealing the private key?

---

## [Is there a reference to CKKS proxy re-encryption used in openFHE?](https://openfhe.discourse.group/t/is-there-a-reference-to-ckks-proxy-re-encryption-used-in-openfhe/930)

<div class="topic-metadata">

**Author:** [@crazyRobert](https://openfhe.discourse.group/u/crazyRobert)\
**Replies:** 6\
**Last updated:** [March 26, 2025, 3:06pm UTC](https://openfhe.discourse.group/t/is-there-a-reference-to-ckks-proxy-re-encryption-used-in-openfhe/930 "2025-03-26T15:06:43Z")

</div>

Hello， I read the OpenFHE : Open-Source Fully Homomorphic Encryption Library, which introduces the proxy re-encryption of CKKS is a little brief, and its reference is only the proxy re-encryption of BV and NRTU, as if t…

---

## [Help with CKKS bootstrapping](https://openfhe.discourse.group/t/help-with-ckks-bootstrapping/1951)

<div class="topic-metadata">

**Author:** [@sp18](https://openfhe.discourse.group/u/sp18)\
**Replies:** 3\
**Last updated:** [March 24, 2025, 7:50pm UTC](https://openfhe.discourse.group/t/help-with-ckks-bootstrapping/1951 "2025-03-24T19:50:50Z")

</div>

I am trying to understand the openFHE implementation of CKKS bootstrapping and understand the time taken by it. I understand the implementation is of Meta-BTS. When I run the repo example of simple bootstrapping here, I …

---

## [CKKS examples fail to run when setting NATIVE\_INT as 32 globally](https://openfhe.discourse.group/t/ckks-examples-fail-to-run-when-setting-native-int-as-32-globally/1913)

<div class="topic-metadata">

**Author:** [@JianmingTong](https://openfhe.discourse.group/u/JianmingTong)\
**Replies:** 11\
**Last updated:** [March 12, 2025, 7:23pm UTC](https://openfhe.discourse.group/t/ckks-examples-fail-to-run-when-setting-native-int-as-32-globally/1913 "2025-03-12T19:23:53Z")

</div>

I have a use case to only use \< 32-bit modulus, therefore I modify the CMakeLists.txt to change NATIVE\_SIZE from 64 into 32, as listed below. if( NOT NATIVE\_SIZE ) set( NATIVE\_SIZE 32 ) endif() Accordingly, I set t…

---

## [libOPENFHEpke.dll not found in directory](https://openfhe.discourse.group/t/libopenfhepke-dll-not-found-in-directory/1649)

<div class="topic-metadata">

**Author:** [@audobong](https://openfhe.discourse.group/u/audobong)\
**Replies:** 10\
**Last updated:** [March 6, 2025, 6:41pm UTC](https://openfhe.discourse.group/t/libopenfhepke-dll-not-found-in-directory/1649 "2025-03-06T18:41:51Z")

</div>

Hello OpenFHE Team, I am getting the following error when trying to execute my code on Windows. xxxxx@xxx MINGW64 ~/OneDrive/Documents/FHE123/build $ ./simpleinteger.exe C:/Users/xxxxx/XXXX/Documents/FHE123/build/sim…

---

## [May I merge two ciphertexts with a ring of 2^10 into a ciphertext with a ring of 2^11 in CKKS ciphertext](https://openfhe.discourse.group/t/may-i-merge-two-ciphertexts-with-a-ring-of-2-10-into-a-ciphertext-with-a-ring-of-2-11-in-ckks-ciphertext/1900)

<div class="topic-metadata">

**Author:** [@stone](https://openfhe.discourse.group/u/stone)\
**Replies:** 2\
**Last updated:** [March 4, 2025, 1:46am UTC](https://openfhe.discourse.group/t/may-i-merge-two-ciphertexts-with-a-ring-of-2-10-into-a-ciphertext-with-a-ring-of-2-11-in-ckks-ciphertext/1900 "2025-03-04T01:46:16Z")

</div>

I want to create two different ciphertexts: one with a ring size of 2^10 and 2^9 slots, resulting in a total of two ciphertexts; the other has a ring size of 2^11 and 2^10 slots, resulting in a total of one ciphertext. I…

---

## [Evaluation of ReLU Activation Function through Scheme Switching](https://openfhe.discourse.group/t/evaluation-of-relu-activation-function-through-scheme-switching/1879)

<div class="topic-metadata">

**Author:** [@ngesbrian23](https://openfhe.discourse.group/u/ngesbrian23)\
**Replies:** 6\
**Last updated:** [February 22, 2025, 3:58pm UTC](https://openfhe.discourse.group/t/evaluation-of-relu-activation-function-through-scheme-switching/1879 "2025-02-22T15:58:32Z")

</div>

I am conducting an experiment which is basically to see whether it is possible to Evaluate an activation function through Scheme Switching in OpenFHE. I have gone through all the exercises on this topic and I am not sur…

---

## [Lambda function in LUT](https://openfhe.discourse.group/t/lambda-function-in-lut/1870)

<div class="topic-metadata">

**Author:** [@bhavinmoriya](https://openfhe.discourse.group/u/bhavinmoriya)\
**Replies:** 5\
**Last updated:** [February 19, 2025, 6:56am UTC](https://openfhe.discourse.group/t/lambda-function-in-lut/1870 "2025-02-19T06:56:50Z")

</div>

Hi, I am trying to understand the code here, We are calculating x^3%8. In the following snippet, // Initialize Function f(x) = x^3 % p auto fp = \[\](NativeInteger m, NativeInteger p1) -\> NativeInteger { i…

---

## [Serialization Overhead](https://openfhe.discourse.group/t/serialization-overhead/1867)

<div class="topic-metadata">

**Author:** [@kanjanarat](https://openfhe.discourse.group/u/kanjanarat)\
**Replies:** 6\
**Last updated:** [February 12, 2025, 2:50am UTC](https://openfhe.discourse.group/t/serialization-overhead/1867 "2025-02-12T02:50:00Z")

</div>

Is it normal that the size is much larger after serialize an encrypted data? Am I doing anything wrong?

---

## [Running OpenFHE with in the most efficient way for an intensive application](https://openfhe.discourse.group/t/running-openfhe-with-in-the-most-efficient-way-for-an-intensive-application/1852)

<div class="topic-metadata">

**Author:** [@ngesbrian23](https://openfhe.discourse.group/u/ngesbrian23)\
**Replies:** 4\
**Last updated:** [February 7, 2025, 12:32am UTC](https://openfhe.discourse.group/t/running-openfhe-with-in-the-most-efficient-way-for-an-intensive-application/1852 "2025-02-07T00:32:20Z")

</div>

I have access to 96CPUs of AMD EPYC 7713 64-Core Processor to run my OpenFHE application. When I run it naively, on the system, It takes about 90mins to complete a single round of my job and I have 100 rounds to go t…

---

## [Modulus missmatch after EvalCompareSchemeSwitch()](https://openfhe.discourse.group/t/modulus-missmatch-after-evalcompareschemeswitch/1779)

<div class="topic-metadata">

**Author:** [@DenisRed](https://openfhe.discourse.group/u/DenisRed)\
**Replies:** 7\
**Last updated:** [January 29, 2025, 6:58pm UTC](https://openfhe.discourse.group/t/modulus-missmatch-after-evalcompareschemeswitch/1779 "2025-01-29T18:58:00Z")

</div>

Hi guys, i tried to compare two CKKS ciphertexts with EvalCompareSchemeSwitch() and it throws a Modulus missmatch error. Can you tell me why this is thrown and how to avoid it? SchSwchParams params; params.SetSecur…

---

## [CKKS scaling issue on Ciphertext](https://openfhe.discourse.group/t/ckks-scaling-issue-on-ciphertext/1838)

<div class="topic-metadata">

**Author:** [@ngesbrian23](https://openfhe.discourse.group/u/ngesbrian23)\
**Replies:** 8\
**Last updated:** [January 29, 2025, 5:12pm UTC](https://openfhe.discourse.group/t/ckks-scaling-issue-on-ciphertext/1838 "2025-01-29T17:12:24Z")

</div>

I am using CKKS to carryout a certain operation. I keep getting the error terminate called after throwing an instance of 'lbcrypto::OpenFHEException' what(): openfhe-development/src/pke/lib/encoding/ckkspackedencodi…

---

## [Performance Comparison Study between OpenFHE C++ and Python Interfaces](https://openfhe.discourse.group/t/performance-comparison-study-between-openfhe-c-and-python-interfaces/1831)

<div class="topic-metadata">

**Author:** [@David](https://openfhe.discourse.group/u/David)\
**Replies:** 1\
**Last updated:** [January 13, 2025, 4:19pm UTC](https://openfhe.discourse.group/t/performance-comparison-study-between-openfhe-c-and-python-interfaces/1831 "2025-01-13T16:19:33Z")

</div>

I would like to inquire about the performance difference between using the C++ version of openfhe-development and the Python version (openfhe-python) on the same machine. Specifically, I am interested to know if there ha…

---

## [Can we query an encrypted vector and output matching values?](https://openfhe.discourse.group/t/can-we-query-an-encrypted-vector-and-output-matching-values/1741)

<div class="topic-metadata">

**Author:** [@DenisRed](https://openfhe.discourse.group/u/DenisRed)\
**Replies:** 9\
**Last updated:** [January 13, 2025, 2:32pm UTC](https://openfhe.discourse.group/t/can-we-query-an-encrypted-vector-and-output-matching-values/1741 "2025-01-13T14:32:06Z")

</div>

Hey guys I’m still trying to figure out the possibilities i have with this library. I was wondering if I could also create some kind of “queries” to get values out of an encrypted vector, that match the condition. Just …

---

## [Can i use BFV/BGV instead of CKKS for float numbers](https://openfhe.discourse.group/t/can-i-use-bfv-bgv-instead-of-ckks-for-float-numbers/1829)

<div class="topic-metadata">

**Author:** [@DenisRed](https://openfhe.discourse.group/u/DenisRed)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 12:20am UTC](https://openfhe.discourse.group/t/can-i-use-bfv-bgv-instead-of-ckks-for-float-numbers/1829 "2025-01-10T00:20:18Z")

</div>

Hello together, let’s think of a use case where we need to process vectors of floating point numbers. The first thought is to use CKKS. What CKKS is doing under the hood is scaling up to operate on integers. Theoretica…

---

## [Regarding the relationship between multiplication depth and time in CKKS](https://openfhe.discourse.group/t/regarding-the-relationship-between-multiplication-depth-and-time-in-ckks/1823)

<div class="topic-metadata">

**Author:** [@David](https://openfhe.discourse.group/u/David)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 12:39am UTC](https://openfhe.discourse.group/t/regarding-the-relationship-between-multiplication-depth-and-time-in-ckks/1823 "2025-01-09T00:39:52Z")

</div>

When testing the CKKS scheme, I observed that for scale\_mod\_size = 40, batch\_size = 32768, and N = 65536, as the mult\_depth increases from 1 to 24, with 100 multiplications per layer and averaging the time, there is a no…

[Previous page](https://openfhe.discourse.group/tag/questions/10.md?match_all_tags=true&tags%5B%5D=questions)

[Next page](https://openfhe.discourse.group/tag/questions/10.md?match_all_tags=true&page=2&tags%5B%5D=questions)
