LibCrypto: Remove some debug spam from RSA generation

This commit is contained in:
stelar7 2024-10-26 14:11:09 +02:00 committed by Andreas Kling
parent 37f2818e90
commit 96c053b36e
Notes: github-actions[bot] 2024-10-27 10:31:53 +00:00

View file

@ -163,13 +163,11 @@ public:
p = NumberTheory::random_big_prime(bits / 2);
q = NumberTheory::random_big_prime(bits / 2);
lambda = NumberTheory::LCM(p.minus(1), q.minus(1));
dbgln("checking combination p={}, q={}, lambda={}", p, q, lambda.length());
} while (!(NumberTheory::GCD(e, lambda) == 1));
auto n = p.multiplied_by(q);
auto d = NumberTheory::ModularInverse(e, lambda);
dbgln("Your keys are Pub(n={}, e={}) and Priv(n={}, d={}, p={}, q={})", n, e, n, d, p, q);
RSAKeyPair<PublicKeyType, PrivateKeyType> keys {
{ n, e },
{ n, d, e, p, q }