I use archlinux, and I install ntl from pacman by default.
I have a problem with catching InvMod error in my code, maybe someone have the same problem, and now the solution for this:
try {
Q = Q + p;
} catch (...) {
std::cout<<"error?";
return;
}
where in + operator I have inverse of modulo, because everything is inside the finite field.
I get this message:
InvMod: inverse undefined
fish: 'and ./crypto' terminated by signal SIGABRT (Abort)
I want to catch this error, because I need to know when I cannot inverse some point. Anyone know how to do this in ntl :)?