Commit 0a6a28f
committed
crypto: atmel-aes - Detecting in-place operations two sg lists
Avoiding detecting finely in-place operations with different
scatter lists. Copying the source data for decryption into rctx->lastc
regardless if the operation is in-place or not. This allows in-place
operations with different scatter lists.
This approach takes less resources than parsing both scatter lists to
check if they are equal.
Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>1 parent edf64f3 commit 0a6a28f
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
496 | | - | |
| 496 | + | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
| 499 | + | |
| 500 | + | |
507 | 501 | | |
508 | 502 | | |
509 | 503 | | |
| |||
1146 | 1140 | | |
1147 | 1141 | | |
1148 | 1142 | | |
1149 | | - | |
| 1143 | + | |
1150 | 1144 | | |
1151 | 1145 | | |
1152 | 1146 | | |
| |||
0 commit comments