mozilla-services / go-cose

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

make sure COSE wg examples are up to date #73

Closed g-k closed 2 years ago

g-k commented 4 years ago

It's OK if the test cases fail, but it'd be good to update them.

niceoneallround commented 3 years ago

Both the examples fail for me with "hash function is not available", resolved by importing _ "crypto/sha256". Added to this issue as seemed the same.

go run example/sign.go panic: Error signing the message hash function is not available

This was resolved by importing _ "crypto/sha256"

So now if run go run example/sign.go Message signature (ES256): 34adc2ae2fe83bb97047bed291f98874da23671e400b6f3592d78f1792c33965351ababb34199ca3bed900f63804e3f81ba03a2aa97fec0e2636b63b49c2c7b9

hwine commented 2 years ago

We are no longer making changes to this repository. See README update for more information.