Newbie question - gcry_sexp_build Seg. Fault

Werner Koch wk at gnupg.org
Fri Nov 5 15:45:05 CET 2004


Hi,

if you want us to help you you should give us more detailed
information.  Printing the values used in the function before the SEGV
as well as full backtrace is essential (in gdb enter "bt full").

On Fri, 5 Nov 2004 11:59:14 +0000, António Pinto said:

>> data=msgid+leaderid;
>> gcry_sexp_build (&plain, NULL, "(data (flags raw) (value %d))", data);
>> gcry_pk_sign(&sign, plain, sKey);

Signing a plain integer in raw mode is in most cases not a good idea.
Depending on the circumstances it is vulnerable to several real world
attacks.

  Werner




More information about the Gcrypt-devel mailing list