Commit 4a9cce2
nrf_security: Fix for PSA MAC context in Cracen
There is an input_buffer in the Cracen MAC driver
which is used to store intermediate data when needed.
The size of this buffer was chosen based on the maximum
hash block size. Since there was some hash optimizations
merged earlier the maximum hash block size can now be 1
and this is problematic for cases where only CMAC is being
used.
This fixes this by setting the buffer accortingly when only
CMAC is enabled.
Signed-off-by: Georgios Vasilakis <[email protected]>
(cherry picked from commit 99b35cb)1 parent 1751b20 commit 4a9cce2
File tree
2 files changed
+4
-2
lines changed- subsys/nrf_security/src/drivers/cracen
- cracenpsa/include
- sxsymcrypt/include/sxsymcrypt
2 files changed
+4
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments