aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-10-16 09:38:13 -0400
committerJack Lloyd <[email protected]>2019-10-16 09:38:13 -0400
commit26354d668b6b1c27aa40ea2dd13ff0dffe09134d (patch)
tree6f4cc0ab73bba6b5242ba44883a8462aad96f975 /src/lib/pubkey
parent1cefc9c30dabee23c193a2abe561764bf65f277d (diff)
parent16661a7b6404be359cd5ad4d55f1b5b51e7daa98 (diff)
Merge GH #2147 Add constant-time gcd computation
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/rsa/rsa.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/pubkey/rsa/rsa.cpp b/src/lib/pubkey/rsa/rsa.cpp
index 5f597b811..830b1a5e8 100644
--- a/src/lib/pubkey/rsa/rsa.cpp
+++ b/src/lib/pubkey/rsa/rsa.cpp
@@ -297,7 +297,6 @@ RSA_PrivateKey::RSA_PrivateKey(RandomNumberGenerator& rng,
const BigInt p_minus_1 = p - 1;
const BigInt q_minus_1 = q - 1;
- // FIXME: lcm calls gcd which is not completely const time
const BigInt phi_n = lcm(p_minus_1, q_minus_1);
// FIXME: this uses binary ext gcd because phi_n is even
d = inverse_mod(e, phi_n);