generating e

This commit is contained in:
2026-04-14 09:02:35 +02:00
parent b5f389264a
commit f4068f97b4

7
main.c
View File

@@ -217,10 +217,9 @@ uint64_t rsa_encrypt(uint64_t *m, prime_test_t *p, prime_test_t *q, uint64_t *ou
// 2. kulcsgeneralas // 2. kulcsgeneralas
uint64_t e = 65537; uint64_t e = 65537;
// TODO: put this back after debug do {
// do { e = rand32() % fi_n;
// e = ran32() % fi_n; } while (e <= 1 || !prime_test(e, p->base)); // the p and q base is used everywhere anyways, i wont pass in another arg
// } while (e <= 1 || !prime_test(e, p->base)); // the p and q base is used everywhere anyways, i wont pass in another arg
euklidian_result_t calc_d = euklidian_algorigthm_extended(fi_n, e); euklidian_result_t calc_d = euklidian_algorigthm_extended(fi_n, e);