Skip to content

scrypt: why dklen must be > 9? #601

@feymartynov

Description

@feymartynov

I wonder why Params constructor requires dklen to be > 9? Is this really necessary?

The RFC doesn't define minimal value for dklen parameter. Other implementations like Python's hashlib or Golang's standard lib don't define it either.

Moreover, the low level scrypt function doesn't use this parameter at all. We can just pass a shorter output buffer and it works perfectly fine.

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