Skip to content

crypto/rsa: GenerateKey documentation doesn't explain what the random parameter is for #6850

@gopherbot

Description

@gopherbot

by alex.gaynor:

http://golang.org/pkg/crypto/rsa/#GenerateKey

The documentation doesn't explain what this parameter is for, leaving a developer to
guess. Guessing is not a good thing to be doing when using cryptography. Ideally it
would include an example which showed a secure usage (which I assume is using
/dev/urandom, but really I'm just guessing, the docs don't say!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions