# Rotation of ciphertexts on column-basis

**URL:** <https://openfhe.discourse.group/t/rotation-of-ciphertexts-on-column-basis/409>\
**Category:** Library Questions\
**Created:** [March 14, 2023, 3:52pm UTC](https://openfhe.discourse.group/t/rotation-of-ciphertexts-on-column-basis/409 "2023-03-14T15:52:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enehta](https://avatars.discourse-cdn.com/v4/letter/e/7feea3/32.png) [@enehta](https://openfhe.discourse.group/u/enehta)\
**Post date:** [March 14, 2023, 3:52pm UTC](https://openfhe.discourse.group/t/rotation-of-ciphertexts-on-column-basis/409/1 "2023-03-14T15:52:04Z")

</div>

Hey everyone, considering the matrix format for batched encrypted data, is it possible to rotate a ciphertext on a column-basis, i.e., swap the rows as implemented [here](https://github.com/microsoft/SEAL/blob/206648d0e4634e5c61dcf9370676630268290b59/native/examples/6_rotation.cpp#L100) in SEAL?

---

<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:** [March 18, 2023, 1:52am UTC](https://openfhe.discourse.group/t/rotation-of-ciphertexts-on-column-basis/409/2 "2023-03-18T01:52:24Z")

</div>

Already answered in [Rotation in BFV - #4 by ypolyakov](https://openfhe.discourse.group/t/rotation-in-bfv/416/4)
