/* Writes a pre-processed HMAC key to the digest registers in the SHA/MD5 module. */
void SHAMD5HMACPPKeySet(uint32_t ui32Base, uint32_t *pui32Src)
/* Writes a pre-processed HMAC key to the digest registers in the SHA/MD5 module. */
void SHAMD5HMACPPKeySet(uint32_t ui32Base, uint32_t *pui32Src)
{
    uint32_t ui32Idx;
    ASSERT(ui32Base == SHAMD5_BASE);
    for(ui32Idx = 0; ui32Idx < 64; ui32Idx += 4)
    {
        HWREG(ui32Base + SHAMD5_O_ODIGEST_A + ui32Idx) = *pui32Src++;
    }
    HWREG(ui32Base + SHAMD5_O_MODE) |= (SHAMD5_MODE_HMAC_OUTER_HASH |
                                        SHAMD5_MODE_CLOSE_HASH);
    HWREG(ui32Base + SHAMD5_O_DIGEST_COUNT) = 64;
}