Set error if EVP_CipherUpdate fails.