Closed OR13 closed 1 year ago
cose.Sign1
is returning an error, but is being discarded (sig, _ := cose.Sign1(...
). That error says that the hash function for the given algorithm is not available. It should be fixed by adding crypto/sha256
as a blank import so Go links it to the binary.
There is no need to blank-import crypto/sha512
because it is already there in go1.19. This might not hold true in future releases, so it would be good to explicitly import it.
Just looking for the next steps here:
Thanks, @yogeshbdeshpande
I was preparing an update to the readme, to change ES521 to ES256 (which is much more reasonable starting point).
But the following surprisingly failed:
All I did was change:
For example, this works: