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

Bug (or specific issue?) with key generation when password enabled #3

Open
ni4 opened this issue May 1, 2013 · 0 comments
Open

Bug (or specific issue?) with key generation when password enabled #3

ni4 opened this issue May 1, 2013 · 0 comments

Comments

@ni4
Copy link

ni4 commented May 1, 2013

Even when password is enabled, for key generation only first 32 bytes of seed-password-iv buffer are used:

EVP_DigestInit(&ctx, EVP_sha1());
EVP_DigestUpdate(&ctx, buffer, OBFUSCATE_SEED_LENGTH + iv_len);
EVP_DigestFinal(&ctx, md_output, &md_len);

So, for instance, when password is longer then 16 bytes, the same key will be used for client and for server.

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