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 dthomp...@prinpay.comwrote: 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

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

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

2010-05-25 Thread francesco.petruzzi
-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 feed the encrypted file to my

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 key used to encrypt -iv iv used to encrypt -in rgconf_encrypted -out rgconf_decrypted. -Anand On Tue, May 25, 2010 at 8:30 AM, ~ Kunal Sharma ~ koolku...@gmail.comwrote: Friends, I'm

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 be

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 ?

EVP routines

2005-01-17 Thread Antonio Andrés Espallardo
Hi everybody. I'm developing an aplication in C++ which uses some OpenSSL crypto operations. Concretely, I need to offer support to cipher operations, that is, there is a method whis initializes an encrypt operation, an operation which encrypts an input data and which will be called