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
Clarify BN_mod_exp docs #6137
Clarify BN_mod_exp docs #6137
Conversation
Specifically this is not supported with an even modulus and BN_FLG_CONSTTIME. Fixes openssl#5082
doc/man3/BN_add.pod
Outdated
@@ -92,7 +92,9 @@ BN_exp() raises I<a> to the I<p>-th power and places the result in I<r> | |||
BN_mul(). | |||
|
|||
BN_mod_exp() computes I<a> to the I<p>-th power modulo I<m> (C<r=a^p % | |||
m>). This function uses less time and space than BN_exp(). | |||
m>). This function uses less time and space than BN_exp(). Note that calling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"not supported" doesn't mean much. Does it return an error? Perhaps this:
Do not call this function when B<m> is even and any of the parameters have the B<BN_FLG_CONSTTIME> flag set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Fixup commit pushed. The same fixup has also been applied to #6138. |
Pushed. Thanks. |
Specifically this is not supported with an even modulus and
BN_FLG_CONSTTIME.
Fixes #5082