Re: Unable to decrypt message

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

 



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, 2016 at 3:51 PM, Gadre Nayan <gadrenayan@xxxxxxxxx> wrote:
> 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 CRYPTO_ALG_ASYNC ,
> key is also same (content and size).
>
> Should the Initialization vector also be the same. Since I am
> generating iv random bytes on both ends.
>
> Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux