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

BCRYPT_HASHSIZE Windows #27

Open
xxxcucus opened this issue Apr 10, 2021 · 0 comments
Open

BCRYPT_HASHSIZE Windows #27

xxxcucus opened this issue Apr 10, 2021 · 0 comments

Comments

@xxxcucus
Copy link

Under bcrypt.c BCRYPT_HASHSIZE is 60. But then the function crypto_rn is called. That is transmitted in BF_Crypt function as size parameter (crypt_blowfish.c). In this function is required that size is bigger as 60
if (size < 7 + 22 + 31 + 1) {
__set_errno(ERANGE);
return NULL;
}
Hence an error by hash generation. It seems to work with a hash size of 64.

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