c - AES Encryption- large files -
i doing aes encryption using evp interface of openssl in c language in 128/192/256 cbc modes. found nice example in stackoverflow have started programming.
what know is:
- what default padding used while encryption?
- what happens if have large data. have code divide data blocks of 128 bits? or evp interface takes care of it?
- what should size of iv 128bit, 192bit , 256bit cbc modes(where key lengths 128, 192, 256 respectively , block size 128)
thanks
there no default padding encryption. there several padding schemes. evp there encrypt final method takes incomplete block , adds padding (default pkcs padding) , encrypts it.
evp take care of it.
size of iv vector when cbc mode used same size block size.
Comments
Post a Comment