Lines Matching refs:cipher_handle
741 cbc_handles *cipher_handle = get_cipher_handle(nid); in afalg_aes_cbc() local
743 if (cipher_handle == NULL) in afalg_aes_cbc()
745 if (cipher_handle->_hidden == NULL in afalg_aes_cbc()
746 && ((cipher_handle->_hidden = in afalg_aes_cbc()
749 cipher_handle->key_size)) == NULL in afalg_aes_cbc()
750 || !EVP_CIPHER_meth_set_iv_length(cipher_handle->_hidden, in afalg_aes_cbc()
752 || !EVP_CIPHER_meth_set_flags(cipher_handle->_hidden, in afalg_aes_cbc()
755 || !EVP_CIPHER_meth_set_init(cipher_handle->_hidden, in afalg_aes_cbc()
757 || !EVP_CIPHER_meth_set_do_cipher(cipher_handle->_hidden, in afalg_aes_cbc()
759 || !EVP_CIPHER_meth_set_cleanup(cipher_handle->_hidden, in afalg_aes_cbc()
761 || !EVP_CIPHER_meth_set_impl_ctx_size(cipher_handle->_hidden, in afalg_aes_cbc()
763 EVP_CIPHER_meth_free(cipher_handle->_hidden); in afalg_aes_cbc()
764 cipher_handle->_hidden= NULL; in afalg_aes_cbc()
766 return cipher_handle->_hidden; in afalg_aes_cbc()