Skip to content

Update the OPTEE shim to use CrngProvider#504

Merged
jstarks merged 2 commits intomicrosoft:mainfrom
jstarks:random_lvbs
Nov 19, 2025
Merged

Update the OPTEE shim to use CrngProvider#504
jstarks merged 2 commits intomicrosoft:mainfrom
jstarks:random_lvbs

Conversation

@jstarks
Copy link
Member

@jstarks jstarks commented Nov 19, 2025

The OPTEE shim should use the new provider to generate random bytes--I missed this in my previous PR. As part of this, fix the shim's handling of large RNG requests to match OPTEE OS (failing above 4096 bytes).

Also, add the fake RNG implementation to the LVBS kernel, to be replaced later.

The OPTEE shim should use the new provider to generate random bytes--I
missed this in my previous PR. As part of this, fix the shim's handling
of large RNG requests to match OPTEE OS (failing above 4096 bytes).

Also, add the fake RNG implementation to the LVBS kernel, to be replaced
later.
@jstarks jstarks marked this pull request as ready for review November 19, 2025 19:01
@github-actions
Copy link

🤖 SemverChecks 🤖 No breaking API changes detected

Note: this does not mean API is unchanged, or even that there are no breaking changes; simply, none of the detections triggered.

Copy link
Contributor

@sangho2 sangho2 left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

@jstarks jstarks added this pull request to the merge queue Nov 19, 2025
Merged via the queue into microsoft:main with commit 727e1e5 Nov 19, 2025
8 checks passed
@jstarks jstarks deleted the random_lvbs branch November 19, 2025 22:11
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.

2 participants