hexadecimal string of R and S concatinated signature value
ASN.1 DER encoded ECDSA signature value
ECDSA signature value has two types of encoding:
This function converts a ECDSA signature encoding from concatinated to ASN.1. This function supports ECDSA signatures by P-256, P-384 and P-521.
sigRStoASN1("
69c3e2489cc23044f91dce1e5efab7a47f8c2a545cdce9b58e408c6a2aabd060
76ba3d70771c00451adcf608d93f20cc79ccaf872f42028aa05ff57b14e5959f")
->
"3044
0220
69c3e2489cc23044f91dce1e5efab7a47f8c2a545cdce9b58e408c6a2aabd060
0220
76ba3d70771c00451adcf608d93f20cc79ccaf872f42028aa05ff57b14e5959f"
// new lines and specs added to understand their structues
convert ECDSA signature value from RS concatinated to ASN.1 encoded