Commit 17e565db authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

rsaenh: Remove an always false conditional subexpression (PVS-Studio).

parent 724ee1d4
......@@ -1955,8 +1955,8 @@ int mp_exptmod (const mp_int * G, const mp_int * X, mp_int * P, mp_int * Y)
dr = 0;
/* if the modulus is odd or dr != 0 use the fast method */
if (mp_isodd (P) == 1 || dr != 0) {
/* if the modulus is odd use the fast method */
if (mp_isodd (P) == 1) {
return mp_exptmod_fast (G, X, P, Y, dr);
} else {
/* otherwise use the generic Barrett reduction technique */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment