Algorithm: AES - CBC mode with PKCS7 padding
Three steps are used to compute the CBC Encrypt as mentioned below:
CBC_Start(Key,IV) CBC_Update(Plaintext, plaintext length, Ciphertext, Ciphertextlength) CBC_Finish(Ciphertext, Ciphertextlength)
Ciphertext is obtained when the update is finished, but when finish is completed, the ciphertext obtained is different from what is expected.
Why is this happening?