# How to split a large CKKS ciphertext into several small CKKS ciphertexts

**URL:** https://openfhe.discourse.group/t/how-to-split-a-large-ckks-ciphertext-into-several-small-ckks-ciphertexts/1674
**Category:** Library Questions
**Tags:** questions
**Created:** [October 29, 2024, 7:29am UTC](https://openfhe.discourse.group/t/how-to-split-a-large-ckks-ciphertext-into-several-small-ckks-ciphertexts/1674 "2024-10-29T07:29:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![stone](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@stone](https://openfhe.discourse.group/u/stone)
#### Post date: [October 29, 2024, 7:29am UTC](https://openfhe.discourse.group/t/how-to-split-a-large-ckks-ciphertext-into-several-small-ckks-ciphertexts/1674/1 "2024-10-29T07:29:47Z")

</div>

May I ask if we can split a ciphertext with slots M into several ciphertexts with slots m while reducing the ring dimensionality of the ciphertext. For example, the original slots=2 ^ 14, corresponding to ringDim=2 ^ 15, are now split into slots=2 ^ 10, corresponding to a total of 16 ciphertexts with ringDim=2 ^ 11.

---

<div class="post-metadata">

### Author: ![andreea.alexandru](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/andreea.alexandru/32/378_2.png) [@andreea.alexandru](https://openfhe.discourse.group/u/andreea.alexandru)
#### Post date: [October 29, 2024, 2:56pm UTC](https://openfhe.discourse.group/t/how-to-split-a-large-ckks-ciphertext-into-several-small-ckks-ciphertexts/1674/2 "2024-10-29T14:56:09Z")

</div>

Splitting the ciphertext with more slots into a number of ciphertexts with fewer slots was described in [the answer to your previous question](https://openfhe.discourse.group/t/how-to-run-ciphertext-conversion-with-2-14-slots-in-60g-memory/1412/8). However, all ciphertexts have the same ring dimension and are encrypted under the same key. In order to make the ring dimension smaller, you need to perform field switching, described in [https://eprint.iacr.org/2012/240.pdf](https://eprint.iacr.org/2012/240.pdf), which is not currently available in OpenFHE and you would have to implemented on your own.

---

<div class="post-metadata">

### Author: ![stone](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@stone](https://openfhe.discourse.group/u/stone)
#### Post date: [October 30, 2024, 1:59am UTC](https://openfhe.discourse.group/t/how-to-split-a-large-ckks-ciphertext-into-several-small-ckks-ciphertexts/1674/3 "2024-10-30T01:59:23Z")

</div>

Okay, thank you very much.
