# Possible suggestion regarding security level feedback

**URL:** <https://openfhe.discourse.group/t/possible-suggestion-regarding-security-level-feedback/919>\
**Category:** Library Questions\
**Tags:** feature-requests\
**Created:** [November 17, 2023, 9:13am UTC](https://openfhe.discourse.group/t/possible-suggestion-regarding-security-level-feedback/919 "2023-11-17T09:13:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![narger](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/narger/32/420_2.png) [@narger](https://openfhe.discourse.group/u/narger)\
**Post date:** [November 17, 2023, 9:13am UTC](https://openfhe.discourse.group/t/possible-suggestion-regarding-security-level-feedback/919/1 "2023-11-17T09:13:27Z")

</div>

Hello everyone,

In the context of CKKS, I think it would be useful that, when OpenFHE says that the current parameters do not comply with the security standards, it would output:

- the upper bound for the ciphertext modulus for the given security setting,
- the current ciphertext modulus

For instance, something like:

"_The upper bound for [security\_level] is [upper\_bound], your parameters have a value of logq equal to [logq], you need to reduce the moduli chain by [logq - upper\_bound]_ "

I am saying that because finding the right parameters is already challenging, taking into consideration the security standards is even harder without having a good feedback.

Thank you 🙂

---

<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:** [November 17, 2023, 2:34pm UTC](https://openfhe.discourse.group/t/possible-suggestion-regarding-security-level-feedback/919/2 "2023-11-17T14:34:20Z")

</div>

Thanks. It is a little bit trickier than this. In the case of hybrid key switching, it is actually logq + logp, and logp can be controlled using the number of digits in hybrid key switching. I agree it would be nice to provide guidelines for this, but the guidelines are a little bit more involved (and cannot be captured with simple output messages).
