Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception is not being caught in MakePackedPlaintext #727

Closed
mdvillagra opened this issue Mar 29, 2024 · 1 comment
Closed

Exception is not being caught in MakePackedPlaintext #727

mdvillagra opened this issue Mar 29, 2024 · 1 comment

Comments

@mdvillagra
Copy link

mdvillagra commented Mar 29, 2024

When the plaintext modulus and cyclotomic number do not satisfy the condition that $m$ divides $q-1$, there is an error

Please provide a primeModulus(q) and a cyclotomic number(m) satisfying the condition: (q-1)/m is an integer.

and immediately the program aborts.

I don't know if the exception is being thrown correctly in this line, because the code below fails to catch the exception.

try
{
   plaintext_number = cryptoContext->MakePackedPlaintext(number);
}
catch (const std::exception &e)
{
    std::cerr << e.what() << std::endl;
}
@yspolyakov
Copy link
Contributor

Please ask this question in the OpenFHE discourse forum: https://openfhe.discourse.group/ The issues are only for reporting bugs, requests, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants