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