Re: [openssl-users] Problem in decryption using python which cipher text is encrypted in c++

2016-02-22 Thread Michel
Hi Sugumar, I might misunderstand your need but 'Hex' (as 'Base64') is just an encoding method to ease use of characters that are not printable. Your example hex string IV : "12345678901234567890123456789012" should be converted to : unsigned char IV[16] = { 0x12, 0x34, 0x56, 0x78, 0x90, 0x12,

Re: [openssl-users] Problem in decryption using python which cipher text is encrypted in c++

2016-02-21 Thread Sugumar
Thanks for your reply. Correct me if i am wrong. What i have understood from your point is, i have to read the first 2 char of 32 char IV and convert into a byte array right? For example: my IV "12345678901234567890123456789012" I have read first 2 char i.e "12" then i have to convert it into

Re: [openssl-users] Problem in decryption using python which cipher text is encrypted in c++

2016-02-19 Thread Salz, Rich
> Then i am passing this cipher text to my another end which is using a > python(PyCrypto library) code to decrypt a cipher text using same Key and > IV. The IV, key, and ciphertext are all binary arrays of bytes. Not C (or ASCII or UTF8 or anything) strings. You will have to convert back/and

[openssl-users] Problem in decryption using python which cipher text is encrypted in c++

2016-02-19 Thread Sugumar
Hi, I have encrypted a free text in C++ using a EVP calls with CFB mode and 32 bytes of IV (Hex String). Then i am passing this cipher text to my another end which is using a python(PyCrypto library) code to decrypt a cipher text using same Key and IV. But i am getting error "IV must be of 16