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

Aleksey Sanin via RT rt at openssl.org
Fri Jan 29 17:59:59 UTC 2016


Thanks! It works great.

Do you have plan to change the behavior of DSA_SIG_new() as well
to pre-create r and s? Currently both are NULL.

Thanks in advance,

Aleksey

On 1/29/16 5:44 AM, Stephen Henson via RT wrote:
> 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