Re: Unable to decrypt message

2016-06-05 Thread Herbert Xu
Gadre Nayan wrote: > > Should the Initialization vector also be the same. Since I am > generating iv random bytes on both ends. Yes the IV must be the same at both ends. Cheers, -- Email: Herbert Xu Home Page:

Re: Unable to decrypt message

2016-06-04 Thread Jeffrey Walton
> I am trying to encrypt decrypt data over the wire. On the receiver > side I have a pre-routing hook where I get reference to my encrypted > data and apply decryption using the skcipher api's, however I am > unable to get the same data back. > > My algo is same on both ends "cbc(aes)" and using

Re: Unable to decrypt message

2016-06-04 Thread Gadre Nayan
Additional information: My Key length is 32 bytes and iv length is 16 bytes but randomly generated. Data length is 20 bytes. AFAIK IV data would be used in the 1st iteration of cbc mode (since its chaining). So any Initialization vector should have worked. But it doesn't. How ? On Sat, Jun 4,

Unable to decrypt message

2016-06-04 Thread Gadre Nayan
Hi, I am trying to encrypt decrypt data over the wire. On the receiver side I have a pre-routing hook where I get reference to my encrypted data and apply decryption using the skcipher api's, however I am unable to get the same data back. My algo is same on both ends "cbc(aes)" and using