Skip to content

Scrypt fails to create Params with len=80 #596

@dEajL3kA

Description

@dEajL3kA

Hello.

We are currently implementing the existing specification of a security protocol. This requires, at one point, to hash a given "password" and "salt" with the scrypt functuion using exactly the following parameters:

scrypt_params = Params::new(15u8, 8u32, 1u32, 80usize);

This currently fails with an InvalidParams error. As far as I can tell, it is because len is greater than 64 😓

Why is the Rust implementation of scrypt limited to only 64 bytes output?

Is there any chance that this limitation can be increased to allow, at least, 80 bytes of output?

To make it clear: There are existing real-world specification that explicitely require to invoke scrypt() with a length of 80 bytes!

(Note: They will split the generated 80 bytes output into two sub-keys of 40 bytes each)

Thank you and best regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions