Testing security level

If i choose small Ring Dimension i will “get” bad security level. There are some test and methods(no brute force) to check the security level of FHE encryption

Could you clarify what your question is? I don’t see a question in the post.

Internally, FindRingDim and FindMaxQ (see Class StdLatticeParm — OpenFHE documentation) are used to find minimum ring dimension for a given value of \log Q or maximum \log Q for a given value of ring dimension. Not sure if this answers your question. But this is how check the compliance in the code.