Re: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-26 Thread ~ Kunal Sharma ~
Thanks guys. It worked for me !! - Kunal On Wed, May 26, 2010 at 6:51 AM, Dave Thompson wrote: > > From: owner-openssl-us...@openssl.org On Behalf Of ~ Kunal Sharma > ~ > > Sent: Tuesday, 25 May, 2010 10:02 > > > I guess I need to supply the iv in hex format. Is it as simple as

RE: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of ~ Kunal Sharma ~ > Sent: Tuesday, 25 May, 2010 10:02 > I guess I need to supply the iv in hex format. Is it as simple as replacing > each ascii character of iv string with the equivalent hex value or something else ?

Re: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread ~ Kunal Sharma ~
Thanks Francesco, Anand for the tip. I guess I need to supply the iv in hex format. Is it as simple as replacing each ascii character of iv string with the equivalent hex value or something else ? I use the passphrase "As different as chalk and cheese" and iv "As dark as pitch". What would my iv

Re: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread Anand Patel
You need to use same iv and key for decryption. I believe the command is openssl enc -d -aes-256-cbc -K -iv -in rgconf_encrypted -out rgconf_decrypted. -Anand On Tue, May 25, 2010 at 8:30 AM, ~ Kunal Sharma ~ wrote: > Friends, > > I'm trying to verify that my encryption and decryption routines

R: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread francesco.petruzzi
gio 2010 14.30 A: openssl-users@openssl.org Oggetto: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line Friends, I'm trying to verify that my encryption and decryption routines work ok. One way I do it is to encrypt the data and save it to a file. The I

Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread ~ Kunal Sharma ~
Friends, I'm trying to verify that my encryption and decryption routines work ok. One way I do it is to encrypt the data and save it to a file. The I feed the encrypted file to my decryption routine and write the decrypted data to another file. I compare the original data and the contents of the d