# TFHE multiplication

**URL:** <https://openfhe.discourse.group/t/tfhe-multiplication/1465>\
**Category:** FHE Questions\
**Tags:** questions\
**Created:** [July 31, 2024, 8:31pm UTC](https://openfhe.discourse.group/t/tfhe-multiplication/1465 "2024-07-31T20:31:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sp18](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sp18](https://openfhe.discourse.group/u/sp18)\
**Post date:** [July 31, 2024, 8:31pm UTC](https://openfhe.discourse.group/t/tfhe-multiplication/1465/1 "2024-07-31T20:31:39Z")

</div>

Does TFHE support only homomorphic addition for two LWE/RLWE ciphertexts and multiplication with constants (polynomials in RLWE)? AFAIK, it supports homomorphic multiplication of only two RGSW ciphertexts, or external product of a RLWE ciphertext with RGSW ciphertext? Why is this so? I figure out that GSW based schemes use decomposition instead of relinearisation to control noise growth. Just wanted to confirm my understanding and reason for it

---

<div class="post-metadata">

**Author:** ![Caesar](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/caesar/32/63_2.png) [@Caesar](https://openfhe.discourse.group/u/Caesar)\
**Post date:** [July 31, 2024, 11:19pm UTC](https://openfhe.discourse.group/t/tfhe-multiplication/1465/2 "2024-07-31T23:19:09Z")

</div>

Your understanding looks good to me. The main idea behind ciphertext multiplication in TFHE-like schemes is to control the magnitude of one operand to be small enough to ensure the noise does not blow up. There are many details on how this is achieved, and I don’t think they can be summarized here. However, here is a great [resource](https://www.daniellowengrub.com/blog/2024/01/03/fully-homomorphic-encryption) on how TFHE-like schemes work, and I highly recommend reading it.

---

<div class="post-metadata">

**Author:** ![sp18](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sp18](https://openfhe.discourse.group/u/sp18)\
**Post date:** [August 1, 2024, 3:10am UTC](https://openfhe.discourse.group/t/tfhe-multiplication/1465/3 "2024-08-01T03:10:13Z")

</div>

Thanks a lot for confirming. Does TFHE support relinearisation by any means? Or is the idea of TFHE based on only supporting GSW ciphertexts for ciphertext multiplications ?

---

<div class="post-metadata">

**Author:** ![Caesar](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/caesar/32/63_2.png) [@Caesar](https://openfhe.discourse.group/u/Caesar)\
**Post date:** [August 1, 2024, 2:27pm UTC](https://openfhe.discourse.group/t/tfhe-multiplication/1465/4 "2024-08-01T14:27:02Z")

</div>

There is a conceptual difference between TFHE-like schemes and BGV-like schemes especially in the multiplication structure. While we would like to build an arithmetic multiplication in BGV-like schemes, the main goal in TFHE-like schemes is mostly building a universal gate (usually NAND).

I assume by _Relinearization_ in BGV-like schemes, you refer to the procedure done after the homomorphic multiplication to reduce the multiplication result from 3 (or more) components down to 2 components. This is not the case in TFHE, and I am not aware of any TFHE-like scheme that uses this procedure except this [work](https://eprint.iacr.org/2021/729.pdf).

That said, it is noteworthy that in some literature, _Relinearization_ is referred to as _Key-Switching_, a more generalized operation than _Relinearization_. What I want to say is that _Key-Switching_ is used in almost all TFHE-like schemes as part of bootstrapping.
