I want to create a Google Go application that will be able to DER encode and decode big integers (namely, ECDSA signature r and s). From what I understand I should use the asn1 package, but what functions should I be calling?
For example, I want to encode
316eb3cad8b66fcf1494a6e6f9542c3555addbf337f04b62bf4758483fdc881d
and
bf46d26cef45d998a2cb5d2d0b8342d70973fa7c3c37ae72234696524b2bc812
to get this:
30450220316eb3cad8b66fcf1494a6e6f9542c3555addbf337f04b62bf4758483fdc881d022100bf46d26cef45d998a2cb5d2d0b8342d70973fa7c3c37ae72234696524b2bc81201
and vice versa. Which function should I call for encoding, and which for decoding and how?