Commit edf64f3
committed
crypto: atmel-tdes - Detecting in-place operations with 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 without affecting other
operations.
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 2d73e1b commit edf64f3
1 file changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
| 568 | + | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
579 | 574 | | |
580 | 575 | | |
581 | 576 | | |
| |||
722 | 717 | | |
723 | 718 | | |
724 | 719 | | |
725 | | - | |
| 720 | + | |
726 | 721 | | |
727 | 722 | | |
728 | 723 | | |
| |||
0 commit comments