Topic: AES CBC Decryption issue in android
I am using wolfcrypt aes cbc function. My usecase is I am sending 1316 bytes of mpeg-2 ts data encrypted using wc_AesCbcEncrypt() function, from udp server in linux and I am receiving the 1316 bytes in an android based receiver and decrypting it using wc_AesCbcDecrypt().
My receiver is an android app which uses c++ for receiving and decrypting data, so I have built wolfcrypt library using ndk-tool chain for arm7 devices.
My key size is 16 bytes.
My issue is some of the packets after decryption are not same as the packet sent by the sender before encryption.
I am sending 1000 packets out of which 10-20 packets are not decrypted properly.
I have tested wc_AesCbcDecrypt() function at the sender side itself and in that case decryption seems to be working properly. but issue is happening at android side.
How can I make sure all packets are decrypted properly at the android receiver side.
Please let me know if you need any more information.