Messages in this thread | | | Date | Fri, 17 Jul 2020 16:43:27 +1000 | From | Herbert Xu <> | Subject | Re: [PATCH] crypto: xts: use memmove to avoid overlapped memory copy |
| |
On Fri, Jul 17, 2020 at 08:59:54AM +0300, Ard Biesheuvel wrote: > > Or change it to b[1] = b[0] (assuming the compiler allows struct > assignment in that way). This will always copy XTS_BLOCK_SIZE bytes, > but we have sufficient space, and it is probably more efficient too > in most cases.
Sounds good to me.
Thanks, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |