projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto: xts - Replace memcpy() invocation with simple assignment
[linux-2.6-block.git]
/
crypto
/
xts.c
diff --git
a/crypto/xts.c
b/crypto/xts.c
index 3c3ed02c7663d89fb49909cc46e4f830f13d14b0..ad45b009774b1172eb9e7e34c3f2a14c1f6b65c4 100644
(file)
--- a/
crypto/xts.c
+++ b/
crypto/xts.c
@@
-171,7
+171,7
@@
static int xts_cts_final(struct skcipher_request *req,
offset - XTS_BLOCK_SIZE);
scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE, 0);
-
memcpy(b + 1, b, tail)
;
+
b[1] = b[0]
;
scatterwalk_map_and_copy(b, req->src, offset, tail, 0);
le128_xor(b, &rctx->t, b);