ARMmbed / ARMmbed/mbed-crypto

Test RNG failure in PSA

Open
#208 2 comments 0 reactions 0 assignees View on GitHub
enhancement Jira status: REOPENED mirrored type: enhancement
Dominant language
C
Stars
108
Forks
95
PR merge metrics
No merged PRs in 30d

Description

### Description

We don't test the impact of RNG failure through the PSA API. This needs some infrastructure since normally the RNG never fails unless the entropy sources fail, and in that case the library initialization fails. For example, we don't have a way to cause the RNG to fail that could let us write a non-regression test for #207.

### Issue request type

[ ] Question
[x] Enhancement
[ ] Bug

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the PSA API paths involved in RNG use and the existing regression context for issue #207. Determine what test infrastructure can force an RNG failure without making library initialization fail, then add a non-regression test that verifies the intended PSA API behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cryptography, testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.