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

Possible openssh_mapper error with SSH v1 key #59

Open
wolneykien opened this issue Aug 30, 2021 · 0 comments
Open

Possible openssh_mapper error with SSH v1 key #59

wolneykien opened this issue Aug 30, 2021 · 0 comments

Comments

@wolneykien
Copy link
Contributor

Hi! There is the following mismatch in the openssh_mapper.c:

It uses

RSA_set0_key(rsa, rsa_e, rsa_n, NULL);

when is parsing ssh v1 key, but

RSA_set0_key(rsa, rsa_n, rsa_e, NULL);

for ssh v2 key. Notice the different order of rsa_e and rsa_n in the calls. Possibly, that's an error. However, I don't known where can I get an SSH version 1 key to check it in runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant