Re: weird bug

2013-08-16 Thread Ztatik Light
strange i think it has something to do with me using rb and wb instead of r and w... On Fri, Aug 16, 2013 at 2:14 AM, Ztatik Light ztatik.li...@gmail.comwrote: So, I'm having a really weird issue... i'm trying simple file encryption/decryption with BIO_*, but if the encrypted file

Re: weird bug

2013-08-16 Thread Ztatik Light
maybe not - still confused On Fri, Aug 16, 2013 at 2:21 AM, Ztatik Light ztatik.li...@gmail.comwrote: strange i think it has something to do with me using rb and wb instead of r and w... On Fri, Aug 16, 2013 at 2:14 AM, Ztatik Light ztatik.li...@gmail.comwrote: So, I'm having a really

Re: OSX Open SSL Usage question

2013-08-16 Thread Ztatik Light
From stackoverflow: These hash values will comes from the Subject DN of each CA certificate (since the aim is to look for a CA certificate with the subject matching the issuer of the certificate to verify). You can either usec_rehash as documented, or get the Subject DN's hash using openssl x509

Re: weird bug

2013-08-16 Thread Ztatik Light
ps, yes, line 29 is a mistake and should read: char new_filename[strlen( filename ) + 5]; But even with that fix i get the same results On Fri, Aug 16, 2013 at 2:27 AM, Ztatik Light ztatik.li...@gmail.comwrote: maybe not - still confused On Fri, Aug 16, 2013 at 2:21 AM, Ztatik Light

weird bug

2013-08-16 Thread Ztatik Light
So, I'm having a really weird issue... i'm trying simple file encryption/decryption with BIO_*, but if the encrypted file is in a subdirectory.. i get garbage data, I'll post the code i'm using, with a brief elaboration on how i'm using it and what behaviour i'm getting:

Re: weird bug

2013-08-16 Thread Ztatik Light
03:34, Ztatik Light ztatik.li...@gmail.com wrote: ps, yes, line 29 is a mistake and should read: char new_filename[strlen( filename ) + 5]; But even with that fix i get the same results On Fri, Aug 16, 2013 at 2:27 AM, Ztatik Light ztatik.li...@gmail.comwrote: maybe not - still confused

Re: weird bug

2013-08-16 Thread Ztatik Light
If I simply replace EVP_des_ede3_cbc with EVP_des_cbc ... then it works okay Some serious bug? On Fri, Aug 16, 2013 at 10:17 AM, Ztatik Light ztatik.li...@gmail.comwrote: same result - did you actually try it? BIO_read is producing this error: error:06065064:digital envelope

Re: weird bug

2013-08-16 Thread Ztatik Light
yes, i fixed that.. it's not causing the problem.. Seriously - if i just use des instead of des_ede3 in works. that simple. has got to be a bug On Fri, Aug 16, 2013 at 10:49 AM, Salz, Rich rs...@akamai.com wrote: **Ø **Some serious bug? ** ** Yes, but in your code: **Ø **char

simple file encrypt/decrypt

2013-08-17 Thread Ztatik Light
anyone have simple code for encrypting/decrypting a file with a specified key using a specified cipher ? i'm getting really weird bugs with my code, i can provide a properly encrypted file to test with

BIO_ seek?

2013-10-04 Thread Ztatik Light
Is there a way to seek with a BIO_ cipher? I try BIO_seek and BIO_reset but any reads after this are incorrect