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 code returned from go-cose Verifier instantiation #124

Closed
yogeshbdeshpande opened this issue Jan 27, 2023 · 1 comment
Closed
Assignees
Milestone

Comments

@yogeshbdeshpande
Copy link
Contributor

yogeshbdeshpande commented Jan 27, 2023

File verifier.go, Interface Method: NewVerifier()
when switching on Algorithm and a correct algorithm is found, then it checks for ValidPublicKeys().

If the Public Key is not valid, it should return a suitable error code for not valid keys, instead the present code
returns ErrAlgorithmMistmatch, which is misleading!

@yogeshbdeshpande
Copy link
Contributor Author

PR: #130
is used to address this issue

@SteveLasker SteveLasker modified the milestones: Future, v1.1.0 Feb 10, 2023
yogeshbdeshpande added a commit that referenced this issue Feb 10, 2023
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

2 participants