make the primes 300 digits (997 bits)

This commit is contained in:
jacekpoz 2024-05-14 12:39:46 +02:00
parent 93df50e2fb
commit 4ebb85f329
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -141,10 +141,10 @@ fn find_private_key(n: &BigUint, e: &BigUint, d: &BigUint) -> (BigUint, BigUint)
fn main() { fn main() {
let p1 = BigUint::from_str( let p1 = BigUint::from_str(
"80353963887486953626439737501036193744308574563815397761973788538684560185111095141165260778449032965268316772055966296398163469889376958493550853540573632322112195295938996103319728902397296099637159" "974727060224362646764494950343283895192247884131401225431125883626677704823599485452659329462717264789225578738426263942189471610243051112987455612230669642273763764066874828122466915752449939769915907320666994623051644250931060706544475012753421053710000840777305651367720812671715570852037695820669"
).unwrap(); ).unwrap();
let p2 = BigUint::from_str( let p2 = BigUint::from_str(
"18707457233710475044596570043325625715877772749687051686334062888982480658954207253640261724015606783212967786089821646723516736894450402336628560527280204032761778998110299572045953802247226060133919" "405429572483370650711751211583337124241480095100234252252445505276023252806716412598284451359933836905532376631046948097710959823641510851399588137748599199145772088806906054590783739726661129142422308347175545861420111080331585498348237997146513527685781878012545164661089657770453030501423904836319"
).unwrap(); ).unwrap();
println!("p1 ({b} bits): {p1}", b = p1.bits()); println!("p1 ({b} bits): {p1}", b = p1.bits());