We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#include <relic_conf.h> #include <relic.h> int main(void) { if ( core_init() != RLC_OK ) abort(); bn_t A, B, tmp, R; bn_null(A); bn_new(A); bn_null(B); bn_new(B); bn_null(tmp); bn_new(tmp); bn_null(R); bn_new(R); const char* s1 = "1"; const char* s2 = "0"; bn_read_str(A, s1, strlen(s2), 10); bn_read_str(B, s2, strlen(s2), 10); bn_mod_pre_pmers(tmp, B); bn_mod_pmers(R, A, B, tmp); bn_free(A); bn_free(B); bn_free(tmp); bn_free(R); return 0; }
Maybe it should set the result to 0 like the other mod functions?
The text was updated successfully, but these errors were encountered:
Fix corner case for reduction modulo 0 in #221.
69cdd9f
Confirmed fixed.
Sorry, something went wrong.
No branches or pull requests
Maybe it should set the result to 0 like the other mod functions?
The text was updated successfully, but these errors were encountered: