Skip to content

scrypt: len field of scrypt::Params is used only in PasswordHasher #449

@sorairolake

Description

@sorairolake

I know this has already been mentioned in the comment.

#[allow(dead_code)] // this field is used only with the `PasswordHasher` impl
pub(crate) len: usize,

However, doc comments of Params::new and Params::RECOMMENDED_LEN does not mention this. So, I suggest mentioning this in doc comments as well. I think this makes it easier to understand that len parameter of Params::new is used only in PasswordHasher and any value is meaningless when PasswordHasher is not used.

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