Commit 6a80586
crypto: x86/aes-xts - simplify loop in xts_crypt_slowpath()
Since the total length processed by the loop in xts_crypt_slowpath() is
a multiple of AES_BLOCK_SIZE, just round the length down to
AES_BLOCK_SIZE even on the last step. This doesn't change behavior, as
the last step will process a multiple of AES_BLOCK_SIZE regardless.
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>1 parent c819d7b commit 6a80586
1 file changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | 938 | | |
944 | | - | |
945 | | - | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
946 | 942 | | |
947 | | - | |
| 943 | + | |
| 944 | + | |
948 | 945 | | |
949 | 946 | | |
950 | 947 | | |
| |||
0 commit comments