summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorChang S. Bae <chang.seok.bae@intel.com>2023-09-28 00:25:08 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2023-10-05 18:16:30 +0800
commite12a68b3c6ac2cecb365b57c639df71e3564d68b (patch)
tree1e3aaa0e1eb2b7c5daaa34598d6e00e2590db252 /drivers/clk
parentd148736ff17de5db1fd0e9b03e9e77615162f613 (diff)
crypto: x86/aesni - Perform address alignment early for XTS mode
Currently, the alignment of each field in struct aesni_xts_ctx occurs right before every access. However, it's possible to perform this alignment ahead of time. Introduce a helper function that converts struct crypto_skcipher *tfm to struct aesni_xts_ctx *ctx and returns an aligned address. Utilize this helper function at the beginning of each XTS function and then eliminate redundant alignment code. Suggested-by: Eric Biggers <ebiggers@kernel.org> Link: https://lore.kernel.org/all/ZFWQ4sZEVu%2FLHq+Q@gmail.com/ Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com> Cc: linux-crypto@vger.kernel.org Cc: x86@kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions