Newbie question - gcry_sexp_build Seg. Fault

António Pinto pinto.antonio at gmail.com
Tue Nov 9 12:46:26 CET 2004


Hello again,

Problem solved, I recoded the app from scratch and I don't have the
problem anymore.
The problem was probably related to the fact that I was using (badly)
some symmetic encryption gcrypt routines in another part of the
program.

Thanks for the help.

On Fri, 05 Nov 2004 15:45:05 +0100, Werner Koch <wk at gnupg.org> wrote:
> 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
> 
> 


-- 
António Pinto



More information about the Gcrypt-devel mailing list