Problem in decryption using python which cipher text is encrypted in c++

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, 0x34, 0x56,
0x78, 0x90, 0x12, 0x34, 0x56, 0x78, 0x90, 0x12 };
in other words       = { 18,   52,   86,   120,  144,  18,   52,   86,
120,  144,  18,   52,   86,   120,  144,  18   }; (decimal values)

-----Message d'origine-----
De?: openssl-users [mailto:openssl-users-bounces at openssl.org] De la part de
Sugumar
Envoy??: lundi 22 f?vrier 2016 06:10
??: openssl-users at openssl.org
Objet?: Re: [openssl-users] Problem in decryption using python which cipher
text is encrypted in c++

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 byte array.

Please give me some more clear idea about this. 
If u have any example for this please post it for our better understanding.
Thanks.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux