Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[csrng] Extend coverage definition for glen #23847

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

vogelpi
Copy link
Contributor

@vogelpi vogelpi commented Jun 28, 2024

It turns out that the RTL doesn't handle Generate commands with a glen equal 0 (generate NO randomness) correctly. But this behavior documented already. We could correct the design to signal a error status response instead, but this really isn't a priority as a Generate command that shouldn't generate entropy is a corner case and even the NIST spec isn't fully clear what should happen here. See #23846 for details.

Thus, this PR simply takes care of extending the coverage definition for the glen coverpoint as outlined in #18350. This resolves #18350.

The NIST SP 800-90A spec uses the term `max_number_of_bits_per_request`
whereas our spec was using `max_number_of_bit_per_request`. It's better
to align terminology to simplify browsing the specs and comparing them.

Signed-off-by: Pirmin Vogel <[email protected]>
@vogelpi vogelpi requested a review from a team as a code owner June 28, 2024 13:58
@vogelpi vogelpi requested review from eshapira, andreaskurth and h-filali and removed request for a team and eshapira June 28, 2024 13:58
Copy link

@h-filali h-filali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@rswarbrick rswarbrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible to me. (And I love the names for the bins. A clever way to avoid needing to realign things :-D)

@vogelpi
Copy link
Contributor Author

vogelpi commented Jul 2, 2024

Looks sensible to me. (And I love the names for the bins. A clever way to avoid needing to realign things :-D)

The main motivation was to increase readability of the crosses :-)

@vogelpi vogelpi merged commit 1ffb8ef into lowRISC:master Jul 2, 2024
29 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[csrng/dv] Improve testing and coverage of glen
3 participants