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
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
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,
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
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
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