[openssl-dev] [openssl.org #4280] OpenSSL 1.1.0 pre 2: feature request: ECDSA_SIG_set0(const ECDSA_SIG*, BIGNUM *, BIGNUM *) is needed

Stephen Henson via RT rt at openssl.org
Fri Jan 29 13:44:45 UTC 2016


On Fri Jan 29 09:59:23 2016, aleksey at aleksey.com wrote:
> Hello,
>
> At the moment, there is no way to set r/s in the ECDSA_SIG structure
> manually to verify the signature encoded into a different format.
> Would be great to add a simple function:
>
> void ECDSA_SIG_set0(const ECDSA_SIG*, BIGNUM *, BIGNUM *)
>
> to set these values similar to other XXX_set0() functions.
>

The way ECDSA_SIG_new() work r and s should always be non-NULL so you
should be able to use the the ECDSA_SIG_get0 function to retrieve pointers to r
and s which can then be modified.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org



More information about the openssl-dev mailing list