[openssl-users] How to encode R and S of an ECDSA signature to ASN1 sequence
William Roberts
bill.c.roberts at gmail.com
Mon Aug 20 21:39:53 UTC 2018
I can successfully deconstruct an an ECDSA Signature Sequence, but now I
need
to construct it, and I am getting lost.
The format I need to build is:
sECDSA-Sig-Value ::= SEQUENCE { r INTEGER, s INTEGER }
I have r and s as buffers in the same format as returned from:
d2i_ASN1_INTEGER() if one used it to remove r or s from the sequence above.
I am not sure how to compose the sequence given r and s, and if their is a
routine to
essentially do the opposite of d2i_ASN1_INTEGER.
Thanks,
Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20180820/eb38251c/attachment.html>
More information about the openssl-users
mailing list