Commit 1250168
committed
[crypto] Check if byte-copy was successful
After a byte-wise copy using randomized_bytecopy() use the function
consttime_memeq_byte() to check if copying the data was successful.
This is a FI mitigation.
Closes #28753.
Signed-off-by: Pascal Nasahl <[email protected]>1 parent b827245 commit 1250168
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
268 | 272 | | |
269 | 273 | | |
270 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
0 commit comments