# How can I use binfhe to add two ciphertext

**URL:** <https://openfhe.discourse.group/t/how-can-i-use-binfhe-to-add-two-ciphertext/1414>\
**Category:** Library Questions\
**Created:** [July 8, 2024, 2:01pm UTC](https://openfhe.discourse.group/t/how-can-i-use-binfhe-to-add-two-ciphertext/1414 "2024-07-08T14:01:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zgl404](https://avatars.discourse-cdn.com/v4/letter/z/ce73a5/32.png) [@zgl404](https://openfhe.discourse.group/u/zgl404)\
**Post date:** [July 8, 2024, 2:01pm UTC](https://openfhe.discourse.group/t/how-can-i-use-binfhe-to-add-two-ciphertext/1414/1 "2024-07-08T14:01:53Z")

</div>

hello  
if I want to add two ciphertext of TFHE,I do not want to use the CKKStoFHEW.  
how can I do that directly?  
for example :encrypt(10)+encrypt(20)=encrypt(30)

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [July 10, 2024, 8:38pm UTC](https://openfhe.discourse.group/t/how-can-i-use-binfhe-to-add-two-ciphertext/1414/2 "2024-07-10T20:38:30Z")

</div>

For larger integers, I would recommend BGV or BFV (in pke). These schemes are much faster for arithmetic operations and support performing thousands of additions at once. See [simple-integers.cpp](https://github.com/openfheorg/openfhe-development/blob/v1.2.0/src/pke/examples/simple-integers.cpp) for an example. If you still want to do it using TFHE, you can use the [`EvalAddEq`](https://openfhe-development.readthedocs.io/en/latest/api/classlbcrypto_1_1LWEEncryptionScheme.html?highlight=EvalAddEq#_CPPv4NK8lbcrypto19LWEEncryptionScheme9EvalAddEqER13LWECiphertextR18ConstLWECiphertext) method.
