-
Notifications
You must be signed in to change notification settings - Fork 781
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
[kmac] Entropy error code #15088
Comments
In Top Earlgrey, we have a few assumptions that may reduce this risk.
With assumptions above, still the risk is quite low in my opinion. However, the design as itself has weakness here. So it is better for KMAC to report errors via App interface in case of entropy errors occur. There's no direct error report from kmac_entropy to kmac_app module yet. |
Just to check that I've understood the comments above properly:
@cindychip @eunchan Is that understanding accurate? |
@jadephilipoom Exactly! |
Results from the discussion in Sec WG 12/08: (1) SW needs to check the error in KMAC before using it through key manager; document in SW guidelines. (2) Mentioned errors are currently not reported on app interface to prevent any unwanted lock-ups; the error reporting on app interface needs to be extended for future versions where no/less SW interaction is available. |
Thank you Johann for summarizing the conclusion. |
Hi @cindychip , |
Totally makes sense, thanks Pirmin. |
|
@cindychip / @vogelpi - I see this moved up from P3 to P2? Please confirm as it's not easy to see with the labelling system here. |
@johngt @ballifatih for M2.5, this task only needs documentation change. (I think might take 2 hours max?) --> P2 for M2.5 If it is easier for tracking, we can split into two issues? Reference: #15088 (comment) |
Sounds reasonable @cindychip, I forked a new issue to track SW/doc changes which are relevant for M2.5. We can keep this issue around for the RTL changes for FutureRelease. I will label it accordingly. |
@vogelpi can you take a look at this and make an assessment as to whether we should fix this for PROD? Thanks! |
I had a look at his earlier this week. My view is that the key thing is to document how software should check those error codes. Reporting such errors on the app interfaces is desirable whenever hardware can trigger such operations but it may lead to unwanted side effects including blocking behavior. For Earlgrey, it might be safer to not do it in HW. We should definitely review this in the Integrated context. |
Thanks for your feedback @johannheyszl , let's keep this open but in the Integrated context. |
When reviewing KMAC entropy related error code, here is one concern we want to flag:
There are two KMAC entropy error code:
WaitTimerExpired
andIncorrectEntropyMode
.Currently both of them will flag an KMAC error.
However, the concern here is: the current KMAC error does not block any incoming operations.
So with these error, we believe KMAC will continue to process all the incoming operations with the existing entropy.
We think this might have some potential issue and at least we should flag an error on keymgr app interface and stop the process there.
@eunchan please feel free to elaborate more.
@jadephilipoom @johannheyszl @cdgori please let us know if you have any other thoughts.
Thanks,
Cindy
The text was updated successfully, but these errors were encountered: