# \#openfhe-help

**URL:** https://openfhe.discourse.group/tag/openfhe-help/11.md?match_all_tags=true&page=2&tags%5B%5D=openfhe-help

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

**Page:** 3

---

## [Implementation of Encryption Using the Finite Field Z2](https://openfhe.discourse.group/t/implementation-of-encryption-using-the-finite-field-z2/1366)

<div class="topic-metadata">

**Author:** [@zgl404](https://openfhe.discourse.group/u/zgl404)\
**Replies:** 5\
**Last updated:** [June 25, 2024, 9:13pm UTC](https://openfhe.discourse.group/t/implementation-of-encryption-using-the-finite-field-z2/1366 "2024-06-25T21:13:44Z")

</div>

I am currently exploring the concept of multimedia encryption and have come across the use of the finite field 𝑍2 for cryptographic purposes, particularly in the context of homomorphic encryption. I am interested in unde…

---

## [BFV Ciphertext multiplication with default parameter setting](https://openfhe.discourse.group/t/bfv-ciphertext-multiplication-with-default-parameter-setting/1364)

<div class="topic-metadata">

**Author:** [@Atwo](https://openfhe.discourse.group/u/Atwo)\
**Replies:** 4\
**Last updated:** [June 18, 2024, 11:37pm UTC](https://openfhe.discourse.group/t/bfv-ciphertext-multiplication-with-default-parameter-setting/1364 "2024-06-18T23:37:02Z")

</div>

Hi everyone, I am using the default parameter setting for multiplying BFV ciphertexts. I am implementing the same code at openfhe-development/src/pke/examples/simple-integers.cpp at main · openfheorg/openfhe-developmen…

---

## [Evaluating Signs of Vector Elements](https://openfhe.discourse.group/t/evaluating-signs-of-vector-elements/1247)

<div class="topic-metadata">

**Author:** [@Pavanranganath](https://openfhe.discourse.group/u/Pavanranganath)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 1:11pm UTC](https://openfhe.discourse.group/t/evaluating-signs-of-vector-elements/1247 "2024-05-06T13:11:24Z")

</div>

Hi everyone, I’m working with vectors (vector1 and vector2) and I’d like to achieve a specific sign evaluation process. Here’s the scenario: I want to use the evalsign function (or equivalent) on the first elements o…

---

## [GPU example for HE](https://openfhe.discourse.group/t/gpu-example-for-he/1249)

<div class="topic-metadata">

**Author:** [@Kitt\_Degg](https://openfhe.discourse.group/u/Kitt_Degg)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 1:37am UTC](https://openfhe.discourse.group/t/gpu-example-for-he/1249 "2024-05-06T01:37:11Z")

</div>

Hello, I wanted to port a Dynamic Programming algorithm to GPU. I found that OpenFHE does have GPU support. Can you point me to an example code/tell me of method that moves Ciphertexts to and from host and device memory …

---

## [Error in EvalSumCols “Input second evaluation key map is empty”](https://openfhe.discourse.group/t/error-in-evalsumcols-input-second-evaluation-key-map-is-empty/1233)

<div class="topic-metadata">

**Author:** [@Pavanranganath](https://openfhe.discourse.group/u/Pavanranganath)\
**Replies:** 4\
**Last updated:** [May 2, 2024, 12:46pm UTC](https://openfhe.discourse.group/t/error-in-evalsumcols-input-second-evaluation-key-map-is-empty/1233 "2024-05-02T12:46:17Z")

</div>

Hi guys, I am facing this error when I tried to use EvalSumCols. I am using openfhe 1.1.4 version slots = 16 cc.EvalSumKeyGen(keys.secretKey) cc.EvalRotateKeyGen(keys.secretKey, \[1, -2\]) eval\_sum\_cols\_keys = cc.EvalSu…

---

## [Does there exist a solution that can extract all MSBs from an RLWE ciphertext, like in BGV or BFV?](https://openfhe.discourse.group/t/does-there-exist-a-solution-that-can-extract-all-msbs-from-an-rlwe-ciphertext-like-in-bgv-or-bfv/363)

<div class="topic-metadata">

**Author:** [@hamm](https://openfhe.discourse.group/u/hamm)\
**Replies:** 4\
**Last updated:** [April 9, 2024, 1:41pm UTC](https://openfhe.discourse.group/t/does-there-exist-a-solution-that-can-extract-all-msbs-from-an-rlwe-ciphertext-like-in-bgv-or-bfv/363 "2024-04-09T13:41:54Z")

</div>

I want to extract all MSB with an RLWE Ciphertext into an vector.I I’m not sure if exist an solution.

---

## [Summation operation between ciphertext](https://openfhe.discourse.group/t/summation-operation-between-ciphertext/1162)

<div class="topic-metadata">

**Author:** [@Pavanranganath](https://openfhe.discourse.group/u/Pavanranganath)\
**Replies:** 1\
**Last updated:** [April 2, 2024, 2:50pm UTC](https://openfhe.discourse.group/t/summation-operation-between-ciphertext/1162 "2024-04-02T14:50:27Z")

</div>

I’m new to homomorphic encryption and I’ve been exploring it by working through some examples in the library. While experimenting with the CKKS scheme, I attempted to perform a summation operation on ciphertexts encrypte…

---

## [BGV parameters.SetMultiplicativeDepth();](https://openfhe.discourse.group/t/bgv-parameters-setmultiplicativedepth/1136)

<div class="topic-metadata">

**Author:** [@Maximilian](https://openfhe.discourse.group/u/Maximilian)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 12:16am UTC](https://openfhe.discourse.group/t/bgv-parameters-setmultiplicativedepth/1136 "2024-03-20T00:16:30Z")

</div>

My question is the following: How high can i set the multiplicative depth for the BGVRNS scheme? Currently i am at 21, if i set the value to 22 i get a config error from the library. My current parameters are: CCPar…

---

## [How to use openfhe with python](https://openfhe.discourse.group/t/how-to-use-openfhe-with-python/1092)

<div class="topic-metadata">

**Author:** [@YDH](https://openfhe.discourse.group/u/YDH)\
**Replies:** 1\
**Last updated:** [February 28, 2024, 6:26pm UTC](https://openfhe.discourse.group/t/how-to-use-openfhe-with-python/1092 "2024-02-28T18:26:23Z")

</div>

I want to use openfhe with python I followed openfhe-python wapper git document, but i didn’t understand if what i did is correct. I have three question. First, I cloned the ‘openfhe-python’ in my ‘openfhe-development…

---

## [Parameters Value/Noise Tolerance according to \\alpha-HE scheme](https://openfhe.discourse.group/t/parameters-value-noise-tolerance-according-to-alpha-he-scheme/1008)

<div class="topic-metadata">

**Author:** [@Atwo](https://openfhe.discourse.group/u/Atwo)\
**Replies:** 1\
**Last updated:** [January 8, 2024, 10:53pm UTC](https://openfhe.discourse.group/t/parameters-value-noise-tolerance-according-to-alpha-he-scheme/1008 "2024-01-08T22:53:36Z")

</div>

Hi, How much noise we can apply in a system so that system keep remain in \\alpha-homomorphic encryption. Otherwise after adding extra noise or increasing parameter values it will destroy the scheme. Where \\alpha belon…

---

## [Reduce Digits in BGV-Scheme](https://openfhe.discourse.group/t/reduce-digits-in-bgv-scheme/931)

<div class="topic-metadata">

**Author:** [@Maximilian](https://openfhe.discourse.group/u/Maximilian)\
**Replies:** 1\
**Last updated:** [November 24, 2023, 5:58pm UTC](https://openfhe.discourse.group/t/reduce-digits-in-bgv-scheme/931 "2023-11-24T17:58:26Z")

</div>

Hello All, is there a way of reducing numbers by size in the BGV-Scheme. E.g.: reducing the number 67000 to 67. Especially reducing appending zeros. There are three theoretically ways of achieving this: Is there a f…

---

## [Connection between PlaintextModulus and MultiplicativeDepth](https://openfhe.discourse.group/t/connection-between-plaintextmodulus-and-multiplicativedepth/912)

<div class="topic-metadata">

**Author:** [@Maximilian](https://openfhe.discourse.group/u/Maximilian)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 10:19pm UTC](https://openfhe.discourse.group/t/connection-between-plaintextmodulus-and-multiplicativedepth/912 "2023-11-14T22:19:56Z")

</div>

Hello, My issue that choosing a higher MultiplicativeDepth will create an error, in the PlaintextModulus. When setting the MultiplicativeDepth to 3 or 4 everything will compile fine. Between 5 and 9 i get the first …

---

## [Shared keys between parties OpenFHE - CKKS](https://openfhe.discourse.group/t/shared-keys-between-parties-openfhe-ckks/908)

<div class="topic-metadata">

**Author:** [@stylianos\_x](https://openfhe.discourse.group/u/stylianos_x)\
**Replies:** 1\
**Last updated:** [November 13, 2023, 7:06pm UTC](https://openfhe.discourse.group/t/shared-keys-between-parties-openfhe-ckks/908 "2023-11-13T19:06:41Z")

</div>

Suppose we have a server and 2 parties such as the examples mentioned in Palisade, specifically the second thresh example where the server computes on the cipher-texts and the clients independently compute the final decr…

---

## [Bgv: 'lbcrypto::config\_error' regarding towers](https://openfhe.discourse.group/t/bgv-lbcrypto-config-error-regarding-towers/904)

<div class="topic-metadata">

**Author:** [@Maximilian](https://openfhe.discourse.group/u/Maximilian)\
**Replies:** 0\
**Last updated:** [November 11, 2023, 3:17pm UTC](https://openfhe.discourse.group/t/bgv-lbcrypto-config-error-regarding-towers/904 "2023-11-11T15:17:11Z")

</div>

Hello all, i implemented a method to calulate the root of a plaintext. Whenever I execute it I get the following error: "terminate called after throwing an instance of ‘lbcrypto::config\_error’ what(): /home/ubu/open…

---

## [Switching between CKKS and FHEW/TFHE](https://openfhe.discourse.group/t/switching-between-ckks-and-fhew-tfhe/893)

<div class="topic-metadata">

**Author:** [@Poojitha](https://openfhe.discourse.group/u/Poojitha)\
**Replies:** 2\
**Last updated:** [November 9, 2023, 2:23pm UTC](https://openfhe.discourse.group/t/switching-between-ckks-and-fhew-tfhe/893 "2023-11-09T14:23:10Z")

</div>

Hi, I am working on a project where i switching between CKKS and FHEW/TFHE is needed. I know that OpenFHE supports scheme switching also see that CKKS to FHEW/TFHE switching capability is released in v1.1. I wasn’t able…

---

## [Is there any example about how to use EvalSumRows/EvalSumCols?](https://openfhe.discourse.group/t/is-there-any-example-about-how-to-use-evalsumrows-evalsumcols/687)

<div class="topic-metadata">

**Author:** [@Knightley](https://openfhe.discourse.group/u/Knightley)\
**Replies:** 9\
**Last updated:** [November 9, 2023, 2:54am UTC](https://openfhe.discourse.group/t/is-there-any-example-about-how-to-use-evalsumrows-evalsumcols/687 "2023-11-09T02:54:03Z")

</div>

If not, does anyone can give an example here?

---

## [ModReduce after EvalMult in BGV](https://openfhe.discourse.group/t/modreduce-after-evalmult-in-bgv/879)

<div class="topic-metadata">

**Author:** [@Maximilian](https://openfhe.discourse.group/u/Maximilian)\
**Replies:** 1\
**Last updated:** [November 8, 2023, 2:50pm UTC](https://openfhe.discourse.group/t/modreduce-after-evalmult-in-bgv/879 "2023-11-08T14:50:25Z")

</div>

Hello, I have a question regarding the BGV Scheme, is it necessary to call modReduce after every EvalMult call? I saw it was not needed in the CKKS Scheme, as it is perfomed automatically. Thank you in advance.

---

## [How to serialize the key of threshold CKKS?](https://openfhe.discourse.group/t/how-to-serialize-the-key-of-threshold-ckks/856)

<div class="topic-metadata">

**Author:** [@crazyRobert](https://openfhe.discourse.group/u/crazyRobert)\
**Replies:** 2\
**Last updated:** [October 26, 2023, 4:48pm UTC](https://openfhe.discourse.group/t/how-to-serialize-the-key-of-threshold-ckks/856 "2023-10-26T16:48:38Z")

</div>

Hello, How to serialize the key of threshold CKKS? I made the following error by doing so：

---

## [What should I do to serialize the ciphertext and secret key of threshold ckks?](https://openfhe.discourse.group/t/what-should-i-do-to-serialize-the-ciphertext-and-secret-key-of-threshold-ckks/854)

<div class="topic-metadata">

**Author:** [@crazyRobert](https://openfhe.discourse.group/u/crazyRobert)\
**Replies:** 1\
**Last updated:** [October 26, 2023, 4:45pm UTC](https://openfhe.discourse.group/t/what-should-i-do-to-serialize-the-ciphertext-and-secret-key-of-threshold-ckks/854 "2023-10-26T16:45:28Z")

</div>

May I ask what additional import operations are required for this serialization? I tried to serialize everyone’s secret key, but the error was reported as follows：

---

## [How can I introduce the downloaded openFHE library into my C++project?](https://openfhe.discourse.group/t/how-can-i-introduce-the-downloaded-openfhe-library-into-my-c-project/850)

<div class="topic-metadata">

**Author:** [@crazyRobert](https://openfhe.discourse.group/u/crazyRobert)\
**Replies:** 3\
**Last updated:** [October 24, 2023, 11:20am UTC](https://openfhe.discourse.group/t/how-can-i-introduce-the-downloaded-openfhe-library-into-my-c-project/850 "2023-10-24T11:20:56Z")

</div>

I have completed the configuration of the environment and downloaded the openFHE library, and all examples in the openFHE project can also be run. But I hope to use openFHE functions in my C++project, how should I import…

---

## [Output is not generated when executing simple-integers.cpp](https://openfhe.discourse.group/t/output-is-not-generated-when-executing-simple-integers-cpp/810)

<div class="topic-metadata">

**Author:** [@Poojitha](https://openfhe.discourse.group/u/Poojitha)\
**Replies:** 18\
**Last updated:** [October 16, 2023, 2:55pm UTC](https://openfhe.discourse.group/t/output-is-not-generated-when-executing-simple-integers-cpp/810 "2023-10-16T14:55:12Z")

</div>

Hi, I installed OpenFHE from stable branch ( v 1.0.4 ) and executed unit tests using “make testall”, all cases were passed. I tried to build and execute simple-integers.cpp as per the instructions in README file availab…

---

## [Generate private key from a predefined value](https://openfhe.discourse.group/t/generate-private-key-from-a-predefined-value/840)

<div class="topic-metadata">

**Author:** [@h114mx001](https://openfhe.discourse.group/u/h114mx001)\
**Replies:** 6\
**Last updated:** [October 14, 2023, 8:40pm UTC](https://openfhe.discourse.group/t/generate-private-key-from-a-predefined-value/840 "2023-10-14T20:40:01Z")

</div>

Are there any ways in OpenFHE that I can generate a private key (in PKE mode) from a predefined value (an integer, bytestreams, etc.)?

---

## [How to get the limitations on computational data](https://openfhe.discourse.group/t/how-to-get-the-limitations-on-computational-data/717)

<div class="topic-metadata">

**Author:** [@ailanxier](https://openfhe.discourse.group/u/ailanxier)\
**Replies:** 1\
**Last updated:** [July 25, 2023, 11:35pm UTC](https://openfhe.discourse.group/t/how-to-get-the-limitations-on-computational-data/717 "2023-07-25T23:35:44Z")

</div>

As a user who does not have a deep understanding of the theory of fully homomorphic encryption, how am I supposed to find the limiting relationship between the homomorphic context parameter and the range of data it can a…

---

## [How to reduce memory usage with using many rotate key and bootstrap key?](https://openfhe.discourse.group/t/how-to-reduce-memory-usage-with-using-many-rotate-key-and-bootstrap-key/700)

<div class="topic-metadata">

**Author:** [@Knightley](https://openfhe.discourse.group/u/Knightley)\
**Replies:** 1\
**Last updated:** [July 17, 2023, 10:44pm UTC](https://openfhe.discourse.group/t/how-to-reduce-memory-usage-with-using-many-rotate-key-and-bootstrap-key/700 "2023-07-17T22:44:20Z")

</div>

Hi, my the program need to do many rotate with different index. Besides, it also need to do many bootstrapping with sparse packing enabled, this need several bootstrap key generated. All these result in many memory usage…

---

## [Random values after decryption of the same input](https://openfhe.discourse.group/t/random-values-after-decryption-of-the-same-input/589)

<div class="topic-metadata">

**Author:** [@miiip](https://openfhe.discourse.group/u/miiip)\
**Replies:** 2\
**Last updated:** [June 15, 2023, 4:46pm UTC](https://openfhe.discourse.group/t/random-values-after-decryption-of-the-same-input/589 "2023-06-15T16:46:02Z")

</div>

Hi all! I want to implement encrypted equality testing using BFV. I follow the simple approach described here. I set the plaintext modulus to 65537 and the multiplicative depth to 20. Here is the function for equality t…

---

## [Does the multiplicativeDepth determine the number of EvalMult(ciphertext, plaintext)?](https://openfhe.discourse.group/t/does-the-multiplicativedepth-determine-the-number-of-evalmult-ciphertext-plaintext/580)

<div class="topic-metadata">

**Author:** [@Cesare](https://openfhe.discourse.group/u/Cesare)\
**Replies:** 1\
**Last updated:** [May 26, 2023, 6:57pm UTC](https://openfhe.discourse.group/t/does-the-multiplicativedepth-determine-the-number-of-evalmult-ciphertext-plaintext/580 "2023-05-26T18:57:18Z")

</div>

I want to know how the multiplicationDepth affects the number of EvalMult(ciphertext, plaintext). I set the multiplicationDepth = n. After performing n+1 plaintext-ciphertext multiplications, the result decrypted is 0. …

---

## [CKKS and FHEW ciphertext interconversion](https://openfhe.discourse.group/t/ckks-and-fhew-ciphertext-interconversion/324)

<div class="topic-metadata">

**Author:** [@hamm](https://openfhe.discourse.group/u/hamm)\
**Replies:** 3\
**Last updated:** [February 14, 2023, 3:57am UTC](https://openfhe.discourse.group/t/ckks-and-fhew-ciphertext-interconversion/324 "2023-02-14T03:57:46Z")

</div>

I need to compare the calculated ckks ciphertext. May I ask whether openFHE has a conversion method for CKKS and FHEW ciphertext？

---

## [Automaticly find a good Plaintext Modulus](https://openfhe.discourse.group/t/automaticly-find-a-good-plaintext-modulus/312)

<div class="topic-metadata">

**Author:** [@smerte](https://openfhe.discourse.group/u/smerte)\
**Replies:** 1\
**Last updated:** [January 25, 2023, 10:19pm UTC](https://openfhe.discourse.group/t/automaticly-find-a-good-plaintext-modulus/312 "2023-01-25T22:19:33Z")

</div>

Currently, I am manually calculating or using the method below to find a plaintext modulus that is vaild and big enough for my needs (e.g., for chosen multiplicative depth). FirstPrime(uint64\_t nBits, uint64\_t m); By v…

---

## [Problems in "OpenFHE integer examples" project](https://openfhe.discourse.group/t/problems-in-openfhe-integer-examples-project/285)

<div class="topic-metadata">

**Author:** [@smerte](https://openfhe.discourse.group/u/smerte)\
**Replies:** 5\
**Last updated:** [January 19, 2023, 4:10pm UTC](https://openfhe.discourse.group/t/problems-in-openfhe-integer-examples-project/285 "2023-01-19T16:10:44Z")

</div>

I’m having weird behaviour when running openfhe-integer-examples project (both examples). More details here: mismatch in the total occurences between the cleartext and encrypted versions · Issue #2 · openfheorg/openfhe-…

---

## [Receiving an error while trying to use OpenFHE as part of a project](https://openfhe.discourse.group/t/receiving-an-error-while-trying-to-use-openfhe-as-part-of-a-project/37)

<div class="topic-metadata">

**Author:** [@iquah](https://openfhe.discourse.group/u/iquah)\
**Replies:** 1\
**Last updated:** [August 4, 2022, 10:20am UTC](https://openfhe.discourse.group/t/receiving-an-error-while-trying-to-use-openfhe-as-part-of-a-project/37 "2022-08-04T10:20:50Z")

</div>

I’m trying to build a project that is using OpenFHE see pTensor which uses OpenFHE for numerical computation. However, I’m running into a build issue: In file included from /usr/local/include/openfhe/core/math/hal/bigin…

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

[Next page](https://openfhe.discourse.group/tag/openfhe-help/11.md?match_all_tags=true&page=3&tags%5B%5D=openfhe-help)
