Skip to content

cc3xx: support persistent DRBG state - #14

Merged
amjoul01 merged 3 commits into
Mbed-TLS:mainfrom
CriGhe01:crighe01_persistent_drbg_state
Jul 15, 2026
Merged

cc3xx: support persistent DRBG state#14
amjoul01 merged 3 commits into
Mbed-TLS:mainfrom
CriGhe01:crighe01_persistent_drbg_state

Conversation

@CriGhe01

Copy link
Copy Markdown
Contributor

Allow platforms to provide storage for DRBG state instead of always using driver-local static storage. This lets boot stages share the seeded DRBG state while keeping the fixed DRBG function pointers local to each image.

@amjoul01

Copy link
Copy Markdown
Collaborator

manually-triggered CI: https://ci.trustedfirmware.org/job/tf-m-static/3995/

@amjoul01
amjoul01 self-requested a review July 13, 2026 09:50
@CriGhe01
CriGhe01 force-pushed the crighe01_persistent_drbg_state branch 2 times, most recently from 9eef6b9 to 97e166f Compare July 13, 2026 10:18
@adeaarm

adeaarm commented Jul 13, 2026

Copy link
Copy Markdown
Member

I think the direction is correct, but we will need a similar approach to provide persistent storage for the state of the SP800-90B health tests, so that we don't perform them as well when moving between boot stages. We can use this PR for this additional work

@adeaarm
adeaarm self-requested a review July 13, 2026 12:57
@CriGhe01

Copy link
Copy Markdown
Contributor Author

manually triggered CI - https://ci.trustedfirmware.org/job/tf-m-static/3999/

@CriGhe01

CriGhe01 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

manually triggered CI with SP800-90B health tests persistent data solution https://ci.trustedfirmware.org/job/tf-m-static/4003/

july 14 16:22 https://ci.trustedfirmware.org/job/tf-m-static/4007/

Comment thread vendor/arm/cc3xx/low_level_driver/src/cc3xx_entropy.c
Comment thread vendor/arm/cc3xx/low_level_driver/src/cc3xx_entropy.c Outdated
Comment thread vendor/arm/cc3xx/low_level_driver/src/cc3xx_rng.c Outdated
@CriGhe01
CriGhe01 force-pushed the crighe01_persistent_drbg_state branch from 31d38fd to e924548 Compare July 14, 2026 15:19
@adeaarm
adeaarm self-requested a review July 14, 2026 19:48
@adeaarm
adeaarm requested a review from jackson-cooperd July 15, 2026 08:50
CriGhe01 added 3 commits July 15, 2026 10:25
Allow platforms to provide storage for DRBG state instead
of always using driver-local static storage. This lets boot
stages share the seeded DRBG state while keeping the fixed
DRBG function pointers local to each image.

Change-Id: I2970242c5ace767336aa1bba51b7e98f910e7ed7
Signed-off-by: Cristina Gheorghe <Cristina.Gheorghe@arm.com>
Allow platforms to provide storage for SP800-90B health-test
state. This avoids repeating startup tests and preserves
continuous-test progress when boot stages share an entropy
source.

Change-Id: Iedcd975ad4310118dbbd474c79fef4d4e995f221
Signed-off-by: Cristina Gheorghe <Cristina.Gheorghe@arm.com>
Keep the entropy and DRBG context types available in all
builds. Only create local storage when the platform does
not provide its own persistent storage.

Rename the context pointers with the p_ prefix and keep
the g_ prefix for global storage objects.

Change-Id: I3d3e996af7bfa6795a0abb7bc828e14146701431
Signed-off-by: Cristina Gheorghe <Cristina.Gheorghe@arm.com>
@adeaarm
adeaarm force-pushed the crighe01_persistent_drbg_state branch from e924548 to 8e705fa Compare July 15, 2026 09:26
@amjoul01
amjoul01 merged commit 7f02b7a into Mbed-TLS:main Jul 15, 2026
1 check 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.

4 participants