I'm seeing multiple layers of this pattern scattered all over the firmware, mostly at the interface between caliptra-runtime and caliptra-dpe, and caliptra-dpe and the lower-level crypto implementation.
We are throwing away the lower-level error code, and the replaced error codes aren't even unique
I'm seeing multiple layers of this pattern scattered all over the firmware, mostly at the interface between caliptra-runtime and caliptra-dpe, and caliptra-dpe and the lower-level crypto implementation.
We are throwing away the lower-level error code, and the replaced error codes aren't even unique
https://github.com/chipsalliance/caliptra-dpe/blob/a2c3717f300ec11d61639515bbaeb431f6307fb4/dpe/src/commands/sign.rs#L45-L48
https://github.com/chipsalliance/caliptra-sw/blob/203e80c42cd033b46b3eb340abb35cc09730d920/runtime/src/invoke_dpe.rs#L57-L58
https://github.com/chipsalliance/caliptra-sw/blob/203e80c42cd033b46b3eb340abb35cc09730d920/runtime/src/invoke_dpe.rs#L111
https://github.com/chipsalliance/caliptra-sw/blob/203e80c42cd033b46b3eb340abb35cc09730d920/runtime/src/dpe_crypto.rs#L86-L88
https://github.com/chipsalliance/caliptra-sw/blob/203e80c42cd033b46b3eb340abb35cc09730d920/runtime/src/dpe_crypto.rs#L119-L124
This makes it very difficult to discover why something isn't working.