Re: Error in PBE (PKCS5)program

2004-07-19 Thread Dr. Stephen Henson
On Mon, Jul 19, 2004, Joe smith wrote: > My fault Dr. Henson. The segmentation fault exists in the statement: > err = EVP_PBE_CipherInit (alg->algorithm, passwd, strlen(passwd), > alg->parameter, &ctx, 1); > > Once again the code is a shortened version of the actual encrypt/decrypt > code. >

Re: Error in PBE (PKCS5)program

2004-07-19 Thread Joe smith
My fault Dr. Henson. The segmentation fault exists in the   statement:     err = EVP_PBE_CipherInit (alg->algorithm, passwd, strlen(passwd), alg->parameter, &ctx, 1); Once again the code is a shortened version of the actual encrypt/decrypt code. int main() { EVP_CIPHER_CTX ctx;

Re: Error in PBE (PKCS5)program

2004-07-19 Thread Dr. Stephen Henson
On Mon, Jul 19, 2004, Joe smith wrote: > Hi, > I tried modifying the code and now I get a segmentation fault on this line: > > err = EVP_CipherUpdate (&ctx, enc_buff, &bytes_enc, message, strlen(message)); > [code snipped] Hard to say since the call to EVP_CipherUpdate() isn't included. If enc

Re: Error in PBE (PKCS5)program

2004-07-19 Thread Joe smith
Hi, I tried modifying the code and now I get a segmentation fault on this line: err = EVP_CipherUpdate (&ctx, enc_buff, &bytes_enc, message, strlen(message)); Here is the code: #include #include #include #include #include int main() { EVP_CIPHER_CTX ctx; X509_ALGOR *alg=NULL; unsigned char *p

Re: Error in PBE (PKCS5)program

2004-07-17 Thread Dr. Stephen Henson
On Fri, Jul 16, 2004, Joe smith wrote: > Hi: [code snipped] > But i am getting the following error: > > 1536:error:06074079:lib(6):func(116):reason(121):evp_pbe.c:89:TYPE=PBES2 > > Any suggestions? > The FAQ? This is another incarnation of: http://www.openssl.org/support/faq.html#PROG6 http