/* Sets the initialization vector in the DES module. */
bool DESIVSet(uint32_t ui32Base, uint8_t *pui8IVdata)
/* Sets the initialization vector in the DES module. */
bool DESIVSet(uint32_t ui32Base, uint8_t *pui8IVdata)
{
    ASSERT(ui32Base == DES_BASE);
    if((HWREG(ui32Base + DES_O_CTRL) & DES_CTRL_CONTEXT) == 0)
    {
        return(false);
    }
    HWREG(ui32Base + DES_O_IV_L) =  *((uint32_t *) (pui8IVdata + 0));
    HWREG(ui32Base + DES_O_IV_H) = *((uint32_t *) (pui8IVdata + 4));
    return(true);
}