Commit cd2f6ad
nrf_security: CRACEN: Fix hardfault when using sxsymcrypt API
Using the following sequence of calls led to the hardfault:
sx_mac_create_hmac_sha2_256(ctx, key)
sx_mac_feed(ctx, 'chunk 1')
sx_mac_feed(ctx, 'chunk 2')
sx_mac_generate(ctx)
sx_mac_wait(ctx)
Reason: attempt to dereference a pointer that has not been set.
Ref: NCSDK-36712
Signed-off-by: Anton Zyma <[email protected]>1 parent 6a7b8f9 commit cd2f6ad
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
0 commit comments