Re: CRLDP in OSSL CA

2009-01-15 Thread Zbyněk Krejčík
Hello all, Thanks a lot. The trouble was in (outdated) info in the only relevant doc on the openssl web I found, ie. x509v3_config(5) (http://www.openssl.org/docs/apps/x509v3_config.html#CRL_distribution_points_) where you can find: ===quot=== Full distribution point example: crlDistributionP

Re: Help with EVP_DecryptFinal_ex:bad decrypt

2009-01-15 Thread Victor Duchovni
On Thu, Jan 15, 2009 at 02:45:49PM -0500, Adam Bender wrote: > > BUG: Don't pass the same buffer/offset to EncryptFinal_ex(), this clobbers > > the first encrypted block. Instead use "sym_out_buf + out_total" if the > > buffer is long enough for both the original ciphertext and the final block. >

Re: Help with EVP_DecryptFinal_ex:bad decrypt

2009-01-15 Thread Adam Bender
On Thu, Jan 15, 2009 at 2:29 PM, Victor Duchovni < victor.ducho...@morganstanley.com> wrote: > On Wed, Jan 14, 2009 at 06:17:28PM -0500, Adam Bender wrote: > > > if (!EVP_EncryptUpdate(&ctx, sym_out_buf, &out_total, (const unsigned > char > > *) data, data_len)) { > > ERR_print_errors_fp(std

Re: Help with EVP_DecryptFinal_ex:bad decrypt

2009-01-15 Thread Victor Duchovni
On Wed, Jan 14, 2009 at 06:17:28PM -0500, Adam Bender wrote: > if (!EVP_EncryptUpdate(&ctx, sym_out_buf, &out_total, (const unsigned char > *) data, data_len)) { > ERR_print_errors_fp(stdout); } > if (!EVP_EncryptFinal_ex(&ctx, sym_out_buf, &out_len)) { > ERR_print_errors_fp(stdout); } BU

openssl-0.9.8j build failure in apps/Makefile (patch included)

2009-01-15 Thread Jarod Neuner
The build process fails in situations where compiler parameters are included in the CC environment variable. example: CC="gcc -L/some/lib/dir -I/some/inc/dir" _ Windows Live™: Keep your life in sync. http://windowslive.com/explore

ssl_connect() failing when upgraded to newer version of Openssl

2009-01-15 Thread Uma G. Nayak
Hi All, I was using Openssl-0.9.8and Apache 2.2 with my program and it was working fine. Now I am trying to upgrade to Openssl-fips-1.2, but with little luck. :( I have performed following steps on it: 1. Downloaded the tarball 2. Created the dll and lib files using the following commands a) pe

Help with EVP_DecryptFinal_ex:bad decrypt

2009-01-15 Thread Adam Bender
Hi, I'm trying to write simple AES encryption/decryption routines. I'm having trouble with the decryption routine, specifically, I get this error: 27013:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:461: I've included my code below; I compile it with: g++ -o