This PR modifies the Algorithm.String message for values not defined in go-cose.
For example, when calling Algorithm(7).String(), it previously returned unknown algorithm value 7. Considering that other libraries can define their own algorithms, IMO that message is too verbose and seems more like an error than a useful name.
With the new behavior, the returned string will be Algorithm(7).
This PR modifies the
Algorithm.String
message for values not defined in go-cose.For example, when calling
Algorithm(7).String()
, it previously returnedunknown algorithm value 7
. Considering that other libraries can define their own algorithms, IMO that message is too verbose and seems more like an error than a useful name. With the new behavior, the returned string will beAlgorithm(7)
.While here, fix #164.