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