Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect error message in verify for unsupported algo #55

Open
ravibajpai001 opened this issue Apr 13, 2024 · 0 comments
Open

Incorrect error message in verify for unsupported algo #55

ravibajpai001 opened this issue Apr 13, 2024 · 0 comments

Comments

@ravibajpai001
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant