# Transciphering with AES

**URL:** <https://openfhe.discourse.group/t/transciphering-with-aes/1607>\
**Category:** FHE Questions\
**Created:** [September 25, 2024, 8:30pm UTC](https://openfhe.discourse.group/t/transciphering-with-aes/1607 "2024-09-25T20:30:57Z")\
**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:** [September 25, 2024, 8:30pm UTC](https://openfhe.discourse.group/t/transciphering-with-aes/1607/1 "2024-09-25T20:30:57Z")

</div>

This paper [here](https://arxiv.org/abs/2401.14840) specified that symmetric ciphers like AES is not a good choice for Hybrid Homomorphic Encryption due to large multiplicative depth. How is the multiplicative depth of AES computed here, is it while homomorphic evaluation (decrypting AES homomorphically and change it to FHE ciphertext) is conducted? And why is it not compatible for this reason?

I tried looking into other papers but every other paper says the same line without any details into it.

---

<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:** [September 27, 2024, 1:22am UTC](https://openfhe.discourse.group/t/transciphering-with-aes/1607/2 "2024-09-27T01:22:23Z")

</div>

Yes, this is what is implied. If the input ciphertexts are given to you encrypted under AES, and you then want to perform computations on those inputs, you first need to convert from AES to FHE. This means you have to run the AES decryption circuit homomorphically. The AES decryption circuit is non-polynomial, and if you want to write it as a leveled polynomial computation, it will have a large depth.

---

<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:** [September 27, 2024, 2:27am UTC](https://openfhe.discourse.group/t/transciphering-with-aes/1607/3 "2024-09-27T02:27:24Z")

</div>

Thank you so much. That was very helpful!

When you say converting into leveled polynomial operations, do you mean writing the operation m= (C)^d mod N in the form of multiplication? And due to the number of multiplication involved, the depth is therefore very large?

---

<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 2, 2024, 2:17pm UTC](https://openfhe.discourse.group/t/transciphering-with-aes/1607/4 "2024-10-02T14:17:31Z")

</div>

The operation you mentioned seems to be RSA, not AES. For AES [https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197-upd1.pdf](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.197-upd1.pdf) operations such as the Sbox, which is a look-up table, would need to be transformed to polynomial evaluation if you use larger plaintext FHE schemes.
