I’m using OpenSSL’s EVP_* API to implement AES encryption in CBC mode.
I’m trying to implement ciphertext stealing to keep the encrypted text the same length as the plain text. I found a method to switch off padding (EVP_CIPHER_CTX_set_padding()), but that doesn’t seem to switch on ciphertext stealing instead of padding.
Does anyone have an example howto do ciphertext stealing ?
I found a patch for OpenSSL from 2007 that implements chiphertext stealing. It hasn’t been included, but there was no problem including the code into my application.