# May I merge two ciphertexts with a ring of 2^10 into a ciphertext with a ring of 2^11 in CKKS ciphertext

**URL:** <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>\
**Category:** Library Questions\
**Tags:** questions\
**Created:** [February 28, 2025, 8:37am 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-02-28T08:37:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [March 3, 2025, 1:36pm 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/2 "2025-03-03T13:36:08Z")

</div>

I do not think this can be done out of the box using the current version of OpenFHE. You need [Ring Switching](https://eprint.iacr.org/2012/240) to do that, and that is not implemented in OpenFHE.

Unless you implement ring switching by yourself, your best option is to instantiate the scheme with the larger ring dimension (2^11) and work with fully packed ciphertexts (2^10 slots) or sparse ciphertexts (2^9 slots) by clearing out any needed slots.

This [thread](https://openfhe.discourse.group/t/oblivious-message-retrieval/1728) might be useful to you. The authors claim implementing ring switching in their scheme using OpenFHE.

---

_[View the full topic](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)._
