Skip to content

Incorrect error code returned from go-cose Verifier instantiation #124

@yogeshbdeshpande

Description

@yogeshbdeshpande

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!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions