Skip to content

BCRYPT_HASHSIZE Windows #27

@xxxcucus

Description

@xxxcucus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions