I want to do AES CBC encryption in Java. I'm using javax.crypto. After I have the Cipher initialized, do I only need to call doFinal on the clear bytes to properly encrypt it? Or do I need to do something with update?
Documentation says update:
Continues a multiple-part encryption or decryption operation
and doFinal
Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation
what exactly do they mean by multiple-part encryption?