Re: ECDSA_SIG not works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Most (all?) of the OpenSSL data structures are opaque now and require accessor functions to get/set the member fields. In your case, see the man page for ECDSA_SIG_set0():

       The r and s values can be set by calling ECDSA_SIG_set0() and passing
       the new values for r and s as parameters to the function. Calling this
       function transfers the memory management of the values to the ECDSA_SIG
       object, and therefore the values that have been passed in should not be
       freed directly after this function has been called.


Regards,
Tom.III


On Fri, Dec 23, 2022 at 2:31 AM Fernando Elena Benavente <fernando.elena.benavente@xxxxxxx> wrote:

Good morning everyone,

 

I have problems with the OpenSSL ECDSA ,specifically with the EDSA_SIG struct. When I initialize the struct and I access to its params (r and s) I get the following error: “error: invalid use of incomplete typedef ‘ECDSA_SIG’ {aka ‘struct ECDSA_SIG_st’}”. I am using the latest version of OpenSSL (3.0.7)

 

https://gyazo.com/375f2fe6a04352f2ee3f3ab4915e27c9

 

https://gyazo.com/b0817f5e81f86b0b6dcbd405c6cde18b

 

any tips of why it could happen?

 

Thanks a lot, Fernando.

 

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux