/* param base CAAM peripheral base address param handle jobRing used for this request. param stateHandle RNG state handle to uninstantiate return Status of the request  */
status_t CAAM_RNG_Deinit(CAAM_Type *base, caam_handle_t *handle, caam_rng_state_handle_t stateHandle)
/* param base CAAM peripheral base address param handle jobRing used for this request. param stateHandle RNG state handle to uninstantiate return Status of the request  */
status_t CAAM_RNG_Deinit(CAAM_Type *base, caam_handle_t *handle, caam_rng_state_handle_t stateHandle)
{
    status_t status;
    caam_desc_rng_t rngUninstantiate = {0};
    rngUninstantiate[0]              = 0xB0800002u;
    rngUninstantiate[1] = 0x8250000Cu;
    if (kCAAM_RngStateHandle1 == stateHandle)
    {
        rngUninstantiate[1] |= 1u << 4;
    }
    do
    {
        status = caam_in_job_ring_add(base, handle->jobRing, &rngUninstantiate[0]);
    } while (status != kStatus_Success);
    status = CAAM_Wait(base, handle, &rngUninstantiate[0], kCAAM_Blocking);
    return status;
}