add WIP p generator

This commit is contained in:
none
2023-06-05 13:21:35 +02:00
parent 5e0dcf1b13
commit 54a236006e
6 changed files with 288 additions and 12 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ fn pow_mod(num: BigUint, pow: BigUint, modulo: BigUint) -> BigUint {
fn main() {
let mut randomgen = StdRng::from_entropy();
let mut private_key = [0u8; 4096];
let mut private_key = [0u8; 256];
randomgen.fill_bytes(&mut private_key);
let private_key = BigUint::from_bytes_be(&private_key);