lowRISC / lowRISC/opentitan

[cryptolib] Add timeout mechanism to CSRNG config in entropy driver

Open
#23,179 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Subsystem:Entropy SW:cryptolib
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.