Re: Re : Re: Re : Generation of DES key for use in DES_encrypt1()

2014-08-31 Thread vineet59
On 29/08/2014 1:31 AM, vineet59 [via OpenSSL] wrote: > Hi > Please help me to resolve this issue of segmentation fault.Below is > the stack trace from valgrind,may this helps: > valgrind ./ssl fecdba9876543210 40fedf386da13d57 test.txt test.des > ==30856== Memcheck, a memory error detector > ==308

Re: Re : Re: Re : Generation of DES key for use in DES_encrypt1()

2014-08-31 Thread vineet59
Hi Please help me to resolve this issue of segmentation fault.Below is the stack trace from valgrind,may this helps: valgrind ./ssl fecdba9876543210 40fedf386da13d57 test.txt test.des ==30856== Memcheck, a memory error detector ==30856== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et a

Re: Re : Re: Re : Generation of DES key for use in DES_encrypt1()

2014-08-25 Thread vineet59
Hi, Yes I have replaced them all with strlen. I got the error in key generation at the checking whether key has generated or not --> if ((k = DES_set_key_checked((C_Block*)&cbc_key,&key)) != 0) printf("\nkey error\n%d\n",k); Every time it prints " key error : -1 " as output.

Re : Re: Re : Generation of DES key for use in DES_encrypt1()

2014-08-24 Thread nicolas . kox
Hi, did you replace them all? where does it fail? Which function, which line? This would be helpful. Regards Nico - Mail d'origine - De: vineet59 À: openssl-users@openssl.org Envoyé: Sun, 24 Aug 2014 11:33:02 +0200 (CEST) Objet: Re: Re : Generation of DES key for use in DES_enc

Re: Re : Generation of DES key for use in DES_encrypt1()

2014-08-24 Thread vineet59
Hi I have replaced the sizeof with strlen(),but still got the same error message. Please respond ASAP!! Thanks!! Vineet -- View this message in context: http://openssl.6102.n7.nabble.com/Generation-of-DES-key-for-use-in-DES-encrypt1-tp52999p53033.html Sent from the OpenSSL - User mailing list

Re : Generation of DES key for use in DES_encrypt1()

2014-08-23 Thread nicolas . kox
Hello, this line seems wrong to me : -> cbc_key = malloc(sizeof(argv[2])); argv[2] is a pointer... so y'ou're allocating the size of a pointer, which is 32 or 64 bits I didn't read the rest in detail, but it looks like you're making this error several times. try to use strlen instead of sizeof