Re: AES-256 CBC encrypt/decrypt usage problem

2010-05-21 Thread ~ Kunal Sharma ~
Ok friends. I'm back after trying out EVP stuff. Here's my code: DECRYPT int wfd; if((wfd = creat("/etc/rgconf_encrypted",0644)) == -1) { console_printf("Couldn't open output file for writingn"); }else{ console_printf("\nuser input encrypted file len

SSL_set_cipher_list and strength_bits

2010-05-21 Thread Michal Dorsett
Hi, I am trying to set a single cipher on my SSL object: AES128-SHA. However, when I call SSL_set_cipher_list(sslobj,"AES128-SHA") and then check what ciphers were actually set I see that AES256-SHA is also set. Arduously stepping through the code I think I finally understand the reason. See bac

Re: Base64 Decode Problem

2010-05-21 Thread Felipe Franciosi
I know this doesn't have anything to do with the problem you are facing, or with openssl for that matter (I'm afraid I can't help with that), but isn't %m exclusive to the syslog() call? Does it also work with printf() ? Regards, Felipe On 20 May 2010, at 16:43, Doug Kehn wrote: Hi All,

Re: AES-256 CBC encrypt/decrypt usage problem

2010-05-21 Thread ~ Kunal Sharma ~
Thanks Jeff, Carter. I'm in the process of trying out EVP routines to do my stuff now. Will post an update once I'm done. Thanks again for your time. - Kunal On Fri, May 21, 2010 at 5:55 PM, Carter Browne wrote: > Kunal, > > If your data can include NULs, you should not use strlen to calculat

Re: AES-256 CBC encrypt/decrypt usage problem

2010-05-21 Thread Carter Browne
Kunal, If your data can include NULs, you should not use strlen to calculate the length of the buffer, you need to provide the length in some other way - in your example presumably as an additional parameter. Carter Carter Browne CBCS cbro...@cbcs-usa.com 781-721-2890 On 5/21/2010 2:30 AM, ~ K

Re: AES-256 CBC encrypt/decrypt usage problem

2010-05-21 Thread Jeffrey Walton
Hi Kunal, > I was also wondering about the cipher block size. I was thinking > of using 16 as block size, read the input ... You have no choice. AES is a 16-byte block cipher. Using the EVP_* functions is easier. Jeff On Fri, May 21, 2010 at 2:30 AM, ~ Kunal Sharma ~ wrote: > David, > Thanks f