RFC: Key sideload scheme
Objective
The objective of this RFC is to collect feedback on sideload architecture options, and decide what level of support to implement in the key manager integrated into Earl Grey.
The RFC is currently in open for comments. Once a consensus has been reached, the RFC will be updated with the design decision before promoting it to the Technical Committee for final review.
Background - What is Sideload?
Sideload, or key manager sideload, refers to a direct hardware connection from the OpenTitan key manager module to hardware symmetric crypto components for supplying keys.
When sideload is employed, keys are generated within the key manager and fed directly to the hardware crypto components for usage. At no point during this process are the keys exposed to software. Thus, compromised software can only abuse the keys but cannot permanently expose them see doc for more details.
Design Options
Currently, there are a couple of proposals under consideration. As part of this RFC, we are requesting inputs for additional proposals.
Key slot implementation
The implementation may provide a limited number of key slots in the key manager, with support for sideloading keys into the
HMAC, KMAC, and AES engines. The number of key slots is left as an implementation detail which needs
to take into consideration tradeoffs between: use cases versus hardware cost.
Additional considerations:
- Even though software does not have visibility into the key material, it is still responsible for managing the key slot mapping to consuming applications.
- The number of bits sideloaded to other IP may be constrained to meet a security level up to 256 bits.
- Sideloading keys into
OTBNis not considered a security feature given that the target does not implement isolation of critical data from software. The current recommendation is to avoid sideloading intoOTBN.
No-Sideload Support
Given the limitations of the key-slot proposal above, and additional considerations, we have put together a justification to remove support for sideloading from the architecture.
See the proposal document for more details.
Update
See sideload memo for the latest thinking and proposals.
The ongoing key manager update deck also details the matching hardware updates for key manager only.
PTAL @sjgitty, @tjaychen, @felixmiller, @cdgori, @vogelpi, @gkelly, @eunchan, @zi-v, @cyrilguyot
@moidx - what is the decision on the key sideload scheme? The decision can affect AES (and other crypto blocks) interfaces. We are keen to freeze these Crypto interfaces.
Hi @mateenfaisal, this is pending feedback from reviews. Expect this to close in 2-3 weeks.
@felixmiller to start looking at keysideload this week.
@tjaychen I think we have a complete sideload proposal now? Can you link it here? And it would be good to get that bubbled up to the technical committee as well, since the TC has been talking about key sideload in the past. Let me know when it's ready and I'll add it to the TC agenda.
The keymanager has been updated with the outcome of the chosen sideload approach, and the sideloading is also being implemented in other IP blocks, such as OTBN. Let's close this issue, since there are no real open questions around the fundamental workings of key sideload any more.