/* Write the initialization vector (for the CBC, CFB, OFB, CTR, and GCM cipher modes).  */
void aes_write_init_vector(struct aes_module *const module, const uint32_t *vector)
/* Write the initialization vector (for the CBC, CFB, OFB, CTR, and GCM cipher modes).  */
void aes_write_init_vector(struct aes_module *const module, const uint32_t *vector)
{
	uint32_t i;
	Assert(module);
	Assert(module->hw);
	Assert(module->opmode != AES_ECB_MODE);
	for (i = 0; i < 4; i++) {
		module->hw->INTVECTV[i].reg = *vector;
		vector++;
	}
}