I am doing AES encryption using EVP interface of OpenSSL in C language in the 128/192/256 cbc modes. I found a nice example in stackoverflow with which I have started programming.
What I would like to know is:
- What is the default padding used while encryption?
- What happens if I have large data. Do I have to code to divide it into data blocks of 128 bits? or does EVP interface takes care of it?
- What should be the size of the IV for 128bit, 192bit and 256bit cbc modes(where only the key lengths are 128, 192, 256 respectively and the block size is always 128)
thanks