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
|
||||
uint64_t e = 65537;
|
||||
// TODO: put this back after debug
|
||||
// do {
|
||||
// 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
|
||||
do {
|
||||
e = rand32() % 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
|
||||
|
||||
euklidian_result_t calc_d = euklidian_algorigthm_extended(fi_n, e);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user