veraison / go-cose

go library for CBOR Object Signing and Encryption (COSE)
Mozilla Public License 2.0
50 stars 26 forks source link

Remove compressed point support from EC2 keys #185

Closed OR13 closed 2 months ago

OR13 commented 7 months ago

What is the areas you would like to add the new feature to?

Go-COSE Library

Is your feature request related to a problem?

Point compression causes warnings.

What solution do you propose?

Doing point compression in this library is unnecessary, we can require keys to be in uncompressed form, and then throw errors when compressed point keys are passed, and instruct the user to do point compression before calling our interfaces.

What alternatives have you considered?

Doing point compression in our library

Any additional context?

related to https://github.com/veraison/go-cose/pull/178

and https://github.com/veraison/go-cose/issues/168#issuecomment-1750927203

OR13 commented 7 months ago

If a test confirms errors are thrown for compressed points, this issue can be closed.