mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
LibCrypto: Remove some debug spam from RSA generation
This commit is contained in:
parent
37f2818e90
commit
96c053b36e
Notes:
github-actions[bot]
2024-10-27 10:31:53 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/96c053b36ed Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1976
1 changed files with 0 additions and 2 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue