generating e
This commit is contained in:
7
main.c
7
main.c
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user