/* Writes the Initial Vector (IV) register, needed in some of the AES Modes. */
void AESIVSet(uint32_t ui32Base, uint8_t *pui8IVdata)
/* Writes the Initial Vector (IV) register, needed in some of the AES Modes. */
void AESIVSet(uint32_t ui32Base, uint8_t *pui8IVdata)
{
    ASSERT(ui32Base == AES_BASE);
    HWREG(ui32Base + AES_O_IV_IN_0) = *((uint32_t *)(pui8IVdata+0));
    HWREG(ui32Base + AES_O_IV_IN_1) = *((uint32_t *)(pui8IVdata+4));
    HWREG(ui32Base + AES_O_IV_IN_2) = *((uint32_t *)(pui8IVdata+8));
    HWREG(ui32Base + AES_O_IV_IN_3) = *((uint32_t *)(pui8IVdata+12));
}