Skip to content

Missing hash function validation in RSA-PSS signatures #75

@tolginator

Description

@tolginator

RSA-PSS Sign() function ignores the boolean returned from rs.alg.hashFunc(). While the current code returns a valid hash function for RSA, the code is brittle and error-prone. The boolean return should be validated to ensure that there is a recognized hash function (check for a true value) and there is a hash function (hash = crypto.Hash is not zero).

File: go-cose/rsa.go.

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