deleted dummy var, it does not matter if we generate for dummy or m, it only needs the e and d values from this
This commit is contained in:
5
main.c
5
main.c
@@ -290,8 +290,7 @@ int main() {
|
||||
// rsa signature
|
||||
|
||||
// generate keys
|
||||
uint64_t dummy = 2;
|
||||
rsa_encrypt(&dummy, &p, &q, &e, &d);
|
||||
rsa_encrypt(&m, &p, &q, &e, &d);
|
||||
printf("\n");
|
||||
|
||||
uint64_t signature = kinai_maradek_tetel(&m, d, &p, &q);
|
||||
@@ -313,6 +312,8 @@ int main() {
|
||||
} else {
|
||||
printf("\nSignature not correct\n");
|
||||
}
|
||||
} else {
|
||||
printf("Why?\n");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user