aes: make apply_cbc_chain_data non-static