Skip to content

/dev/random instead of /dev/urandom #176

@barnabycolby

Description

@barnabycolby

Shouldn't s2n use /dev/random instead of /dev/urandom for the drbg entropy source? /dev/urandom does not guarantee quality, if there is not enough entropy available in it's pool then it will still return values, /dev/random however will block until there is enough entropy.

This change would require some code within s2n_get_urandom_data to handle the possible blocking when reading from /dev/random, and some thought would need to be given as to what to do if it does block.

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