Skip to content

Incorrect error message in verify for unsupported algo #55

@ravibajpai001

Description

@ravibajpai001

getHashForOID function, which is used in verify function uses ErrUnsupportedAlgorithm from decrypt as error message.

var ErrUnsupportedAlgorithm = errors.New("pkcs7: cannot decrypt data: only RSA, DES, DES-EDE3, AES-256-CBC and AES-128-GCM supported")

This error message is confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions