# Bit-Shifting with FHE Ciphertext

**URL:** <https://openfhe.discourse.group/t/bit-shifting-with-fhe-ciphertext/119>\
**Category:** FHE Questions\
**Created:** [September 14, 2022, 12:25am UTC](https://openfhe.discourse.group/t/bit-shifting-with-fhe-ciphertext/119 "2022-09-14T00:25:12Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [September 16, 2022, 9:03pm UTC](https://openfhe.discourse.group/t/bit-shifting-with-fhe-ciphertext/119/8 "2022-09-16T21:03:42Z")

</div>

@cdailey

Some general notes related to your question:

- If the input is encoded as a vector of integers, then multiplication and addition are easy but bit shifting is hard. In this case, in BFV it typically requires bootstrapping (very expensive operation).
- If the input is in bits (for example, each coefficient represents a bit), then bit shifting is is not too hard (requires rotations in the worst case), but multiplication is hard (number of bits doubles with each multiplication).

In other words, evaluating the decryption circuit with BFV will be computationally expensive. This is why the community has focused on special ciphers, like PASTA, RASTA, and FASTA (see [the other thread](https://openfhe.discourse.group/t/proxy-re-encryption-of-lightweight-cipher-to-bfv/98) for details and references). These ciphers have an FHE-friendly decryption circuit. Using any LWC without considering the complexity of the decryption circuit from the FHE perspective may not be the best approach.

---

_[View the full topic](https://openfhe.discourse.group/t/bit-shifting-with-fhe-ciphertext/119)._
