Commit ae5d3bb
nrf_security: cracen: Fix identity key personalization
This fixes an old regression introduced by this commit:
(1) 166d9eb
which managed to undo some changes from here:
(2) a013ce7
This seems to be unintentional, likely a result of a rebasing mistake,
because the PR containing (1) was opened before the PR containing (2),
but the second one was merged first.
The fix entails changing the `identity_key_index` argument to existing
function calls from `ikg_signature.c`. Note: this argument only has an
effect when CONFIG_CRACEN_IKG_PERSONALIZED_KEYS=y.
The argument value will now be `owner_id`, from the second byte of the
opaque key buffer, rather than the first byte, which is `slot_number`.
It doesn't make sense to use `slot_number` anymore, because this field
is not populated for CRACEN_BUILTIN_IDENTITY_KEY_ID in the first place
(see `cracen_set_ikg_key_buffer()`), which means that its value is a
constant zero. It used to be an explicit zero prior to this refactor:
(3) a8918df
Ref: NRFX-8427
Signed-off-by: Grzegorz Swiderski <[email protected]>1 parent 8317cb3 commit ae5d3bb
File tree
2 files changed
+10
-6
lines changed- subsys/nrf_security/src/drivers/cracen/cracenpsa/src
2 files changed
+10
-6
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
| 674 | + | |
| 675 | + | |
675 | 676 | | |
676 | 677 | | |
677 | 678 | | |
| |||
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
229 | | - | |
230 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
231 | 233 | | |
232 | | - | |
233 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| |||
0 commit comments