Fix EVP_CIPHER_CTX_set_padding for legacy path