jimmy wrote:
...
you see, as Nils, pointed out your blob is not in asn.1 der format (not starting with 0x30..). since ecdsa_sig is BIGNUM *r, *s; you can try using the BN_bin2bn() function to directly convert your blob to BIGNUM.

you'll need to do this twice, once for r & once for s. Since Nils told that the 2 numbers were concat'ed & since most of the time they're the same size, you can take one half of the buffer to be r & the other half to be s.

r and s are always of the same size (if necessary they are padded
with 0 bytes) as otherwise this couldn't work.

Nils
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to