[cryptolib] Add timeout mechanism to CSRNG config in entropy driver
Nobody has claimed this yet.
- Dominant language
- SystemVerilog
- Stars
- 3.6k
- Forks
- 1.1k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 141
Description
### Description
As proposed by @moidx in https://github.com/lowRISC/opentitan/pull/23166#discussion_r1605150132 we should add a timeout mechanism to the status bit polling inside the CSRNG configuration function in the entropy driver, to prevent the function from blocking forever.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the discussion in PR #23166 and locate the CSRNG configuration function in the entropy driver, focusing on its status-bit polling loop. Done means the polling has a bounded timeout so configuration cannot block forever; the issue does not name a file or test, so identify the relevant validation path in the surrounding driver code.
Written by the indexing model from the issue text.
Assessment
- Domain
- cryptography, embedded-iot, security
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100