Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation bug in Extended RSA Cryptosystem (org.jcryptool.visual.extendedrsa) #332

Closed
tassadarius opened this issue Oct 6, 2020 · 0 comments · Fixed by #335
Closed
Assignees
Labels

Comments

@tassadarius
Copy link
Collaborator

I found out that this plugin has some input validation issues:

Manage keys → create keys

p and q must be at least 13 and prime. By fiddling a little bit around, this check breaks weirdly:

extended_rsa_pq_bug

The validation for e just seems to print wrong messages, as you can see in this GIF.
The requirement is, that the common divisor of (p-1)*(q-1) = 1.
I have here the example with 540. Only for 5 the correct message is displayed.

extended_rsa_bug

It may be there are further bugs.

Also

The usability is problematic, because it says it must be below phi(N), but you have to calculate phi(N) yourself, if you want to know it.

@tassadarius tassadarius self-assigned this Oct 6, 2020
@tassadarius tassadarius changed the title Validation bug in Extended RSA Cryptosystem (org.jcryptool.visua.extendedrsa) Validation bug in Extended RSA Cryptosystem (org.jcryptool.visual.extendedrsa) Oct 9, 2020
@tassadarius tassadarius linked a pull request Oct 27, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant