bootutil: loader: refactor swap encryption key setup + Skip key load when the slot header is not a valid image #2945
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.52) × (1 − Review Confidence (0.72)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 70 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.255
Sensitive Paths
sensitive_paths
0.052
Real PR Conversation Timeline
4 items
nordicjm
nvlsianpu
Extract duplicated primary and secondary encryption key handling into boot_swap_enc_key_prepare. Skip key load when the slot header is not a valid image so empty slots are not treated as encrypted.